zk.create("/iserviceTest/node1/node1", "node1-node1-node1".getBytes(), acls, CreateMode.PERSISTENT);
return zk;
}
public void clearUpZk(ZooKeeper zk) throws Exception {
Stat s = new Stat();
zk.getData("/iserviceTest/node1/node1", false, s);
zk.delete("/iserviceTest/node1/node1", s.getVersion());
zk.getData("/iserviceTest/node1", false, s);
zk.delete("/iserviceTest/node1", s.getVersion());
zk.getData("/iserviceTest", false, s);
zk.delete("/iserviceTest", s.getVersion());
}