Hi All,

Noobie question coming up.

The following lines of code produce a nonode error:

Zookeeper zk = new ZooKeeper("/test",3000,this);
if(null == zk.exists("test", false){
 zk.create("test",null, Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT);
}

However, if I first create the /test node using zkCli and then run the same
code the node does get created as /test/test.

I'm sure I'm missing something. I'm hoping one of you guys can help me out.

Thanks
PixalSoft

Reply via email to