} catch (UnknownHostException e) {
throw new RuntimeException(e);
}
}
public static int startEmbedZooKeeper() throws IOException {
<BUG>final String zooKeeperWorkingDir = getZooKeeperWorkingDir();
createFolder(zooKeeperWorkingDir);
final String confName = zooKeeperWorkingDir + File.separator + "zoo.cfg";</BUG>
int validZkPort = getValidZooKeeperPort();
prepZooKeeperConf(zooKeeperWorkingDir, confName, validZkPort + "");

} catch (UnknownHostException e) {
throw new RuntimeException(e);
}
}
public static int startEmbedZooKeeper() throws IOException {
String zooKeeperWorkingDir = getZooKeeperWorkingDir();
boolean isSuccessful = createFolder(zooKeeperWorkingDir);
if(!isSuccessful) {
zooKeeperWorkingDir = getZooKeeperWorkingDir("zookeeper_" + System.currentTimeMillis());
createFolder(zooKeeperWorkingDir);
}
final String confName = zooKeeperWorkingDir + File.separator + "zoo.cfg";
int validZkPort = getValidZooKeeperPort();
prepZooKeeperConf(zooKeeperWorkingDir, confName, validZkPort + "");
