zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prashant Saraswat <prashant.saras...@pixalsoft.com>
Subject zk.create throws KeeperError = nonode
Date Thu, 19 Jan 2012 23:14:34 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message