0

I am new to zookeeper programming. I am trying to implement produce consumer queue using zookeeper.I am getting exception while initializing queue. In my zookeeper only root entry is there which is [zookeeper].

I am trying to execute code given at. http://zookeeper.apache.org/doc/r3.3.3/zookeeperTutorial.html#sc_producerConsumerQueues (Not pasting code here to keep post clean)

Exception:

org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /app1
at org.apache.zookeeper.KeeperException.create(KeeperException.java:111)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:783)
at Queue.<init>(Queue.java:27)
at Queue.main(Queue.java:90)

Can any one advice me on  this?


Thanks
4

1 回答 1

0

当父节点(“/root”)不存在而不是创建时,您尝试创建子节点(例如“/root/child”)。检查是否创建了父节点。

于 2014-06-02T11:34:30.127 回答