I m pulling ZooKeeper into a project for some concurrency management, and the first thing I tried was something that, to me, was quite obvious (using the zkpython binding):
zh = zookeeper.init( localhost:2181 )
zookeeper.create(zh, /path/to/a/node , , [ZOO_OPEN_ACL_UNSAFE])
And I got back a NoNodeException
for my trouble.
After reflecting on this and reviewing the docs (such as they are), I ve been unable to find a way to do the equivalent of a mkdir -p
where ZooKeeper will create the missing parent nodes for me.
Am I missing anything, or am I just stuck issuing separate create()s for each part of a path whether I like it or not?