title: Can I recursively create a path in Zookeeper?
body: <p>I'm pulling <a href="http://hadoop.apache.org/zookeeper/" rel="nofollow noreferrer" title="ZooKeeper">ZooKeeper</a> 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):</p>
  
  <pre><code>zh = zookeeper.init('localhost:2181')
  zookeeper.create(zh, '/path/to/a/node', '', [ZOO_OPEN_ACL_UNSAFE])
  </code></pre>
  
  <p>And I got back a <code>NoNodeException</code> for my trouble.</p>
  
  <p>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 <code>mkdir -p</code> where ZooKeeper will create the missing parent nodes for me.</p>
  
  <p>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?</p>