public static String createEphemeralPath(ZkClient zkClient,String path,String data){
  String pathCT=null;
  try {
    pathCT=zkClient.createEphemeralSequential(path,getBytes(data));
  }
 catch (  ZkNoNodeException e) {
    createParentPath(zkClient,path);
    pathCT=zkClient.createEphemeralSequential(path,getBytes(data));
  }
  return pathCT;
}

public static String createEphemeralPath ( ZkClient zkClient , String path , String data ) { String pathCT = null ; try { pathCT = zkClient . createEphemeralSequential ( path , getBytes ( data ) ) ; } catch ( ZkNoNodeException e ) { createParentPath ( zkClient , path ) ; pathCT = zkClient . createEphemeralSequential ( path , getBytes ( data ) ) ; } return pathCT ; }
create an ephemeral node with the given path and data . create parents if necessary .
