Skip to content
Advertisement

When using Apache Curator, why does creating a zNode cause NoNodeException

I am trying to create a “directory” in Zookeeper like this:

JavaScript

Perplexingly, it is giving me a “NoNodeException” on the very node I’m trying to create.

JavaScript

Note that I am able to connect to Zookeeper:

JavaScript

Please note that the Zookeeper server is on a remote machine and the ip (“111.11.111.1”) has been changed in this post.

Advertisement

Answer

Seems related to ACLs, just to be sure, you could manually create it.

Locate your local zk binaries (doesn’t need to be on the remote host) and launch the client (zkCli) pointing at your server. Once connected, create the new znode:

JavaScript

The shell should output the last sentence in order to guarantee the node has been created. Once done, launch again the Curator process.

Take a look here for more detailed info about the zk client.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement