zookeeper 链接报错 KeeperErrorCode = NodeExists for
zookeeper 链接报错
CONNECTING Receive watched event:WatchedEvent state:SyncConnected type:None path:null ZooKeeper session established. org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /test_node at org.apache.zookeeper.KeeperException.create(KeeperException.java:119) at org.apache.zookeeper.KeeperException.create(KeeperException.java:51) at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:783) at ZKTest.doSomething(ZKTest.java:27) at ZKTest.process(ZKTest.java:21) at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:522) at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:498)
要将原来的删除掉 dataDir路径下的version-2文件夹,再重启