public void createPersistent(String path, boolean createParents) throws ZkInterruptedException, IllegalArgumentException, ZkException, RuntimeException {
        createPersistent(path, createParents, ZooDefs.Ids.OPEN_ACL_UNSAFE);
    }
public void createPersistent ( String path , boolean createParents ) throws ZkInterruptedException , IllegalArgumentException , ZkException , RuntimeException { createPersistent ( path , createParents , ZooDefs . Ids . OPEN_ACL_UNSAFE ) ; }
Create a persistent node and set its ACLs.

@param path
@param createParents
if true all parent dirs are created as well and no {@link ZkNodeExistsException} is thrown in case the
path already exists
@throws ZkInterruptedException
if operation was interrupted, or a required reconnection got interrupted
@throws IllegalArgumentException
if called from anything except the ZooKeeper event thread
@throws ZkException
if any ZooKeeper exception occurred
@throws RuntimeException
if any other exception occurs