Imagine a path \"/root/child1/child2/child3\"
Imagine in zookeeper that maybe a part of this exists, say \"/root/child1\"
There is no equivalent of \"mkdir -p\"
You can use Netflix's curator library which makes using zookeeper much simpler
client.create().withMode(CreateMode.PERSISTENT).forPath("/root/child1/child2/child3", new byte[0]).withACL(ZooDefs.Ids.OPEN_ACL_UNSAFE).creatingParentsIfNeeded();