Create a persistent node with the given path and data.
Create a persistent node with the given path and data. Create parents if necessary.
Get JSON partition to replica map from zookeeper.
Update the value of a persistent node with the given path and data.
Update the value of a persistent node with the given path and data. create parent directory if necessary. Never throw NodeExistException. Return the updated path zkVersion
Borrowed from kafka 0.8.1.1. Adapted to use curator framework. https://git-wip-us.apache.org/repos/asf?p=kafka.git;a=blob;f=core/src/main/scala/kafka/utils/ZkUtils.scala