zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prashant Saraswat <prashant.saras...@pixalsoft.com>
Subject Re: zk.create throws KeeperError = nonode
Date Fri, 20 Jan 2012 19:40:57 GMT
Sorry guys. User error. Please ignore.

On Thu, Jan 19, 2012 at 6:14 PM, Prashant Saraswat <
prashant.saraswat@pixalsoft.com> wrote:

> 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