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文件夹,再重启

https://blog.csdn.net/agony_sun/article/details/77480109

posted @ 2019-11-17 20:09  抽象Java  阅读(12969)  评论(0编辑  收藏  举报