zookeeper JavaApi 修改节点
*修改数据
* 1.修改数据
* 2.根据版本修改
*
*
* */
@Test
public void testSet() throws Exception{
Stat stat = new Stat();
client.getData().storingStatIn(stat).forPath("/app1");
int version = stat.getVersion();
client.setData().withVersion(version).forPath("/app1","itcast".getBytes());
}