private void createRecursivly(String path) throws KeeperException, InterruptedException {
  try {
    if (zk.exists(path,true) == null && path.length() > 0) {
      String temp=path.substring(0,path.lastIndexOf(File.separator));
      createRecursivly(temp);
      zk.create(path,null,Ids.OPEN_ACL_UNSAFE,CreateMode.PERSISTENT);
    }
 else {
      return;
    }
  }
 catch (  KeeperException e) {
    throw e;
  }
catch (  InterruptedException e) {
    throw e;
  }
}

private void createRecursivly ( String path ) throws KeeperException , InterruptedException { try { if ( zk . exists ( path , true ) == null && path . length ( ) > 0 ) { String temp = path . substring ( 0 , path . lastIndexOf ( File . separator ) ) ; createRecursivly ( temp ) ; zk . create ( path , null , Ids . OPEN_ACL_UNSAFE , CreateMode . PERSISTENT ) ; } else { return ; } } catch ( KeeperException e ) { throw e ; } catch ( InterruptedException e ) { throw e ; } }
create zookeepr node if not exist
