Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curator use this.client.create().creatingParentsIfNeeded().withMode(CreateMode.PERSISTENT).forPath(path, data); but I find zk didnot have this node. #294

Closed
RebornHuan opened this issue Mar 31, 2015 · 2 comments

Comments

@RebornHuan
Copy link

/workers/10.24.76.52 : writeData
/workers/10.24.76.52 : node not exit
/workers/10.24.76.52 : creatingParentsIfNeeded
/workers/10.24.76.52/state : writeData
/workers/10.24.76.52/state : node not exit
2015-03-31 10:02:04,734 ERROR [main] zookeeper.ZookeeperService (ZookeeperService.java:startWorker(342)) - Worker Register Error Happen, Maker Sure Zookeeper Server Can Be Connected
org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /workers/10.24.76.52/state
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 org.apache.curator.framework.imps.CreateBuilderImpl$11.call(CreateBuilderImpl.java:688)
at org.apache.curator.framework.imps.CreateBuilderImpl$11.call(CreateBuilderImpl.java:672)
at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:107)
at org.apache.curator.framework.imps.CreateBuilderImpl.pathInForeground(CreateBuilderImpl.java:668)
at org.apache.curator.framework.imps.CreateBuilderImpl.protectedPathInForeground(CreateBuilderImpl.java:453)
at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:443)
at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:44)
at com.suning.cybertron.superion.worker.containermanager.zookeeper.ZookeeperClient.writeData(ZookeeperClient.java:124)
at com.suning.cybertron.superion.worker.containermanager.zookeeper.ZookeeperClient.makeDir(ZookeeperClient.java:155)
at com.suning.cybertron.superion.worker.containermanager.zookeeper.ZookeeperService.startWorker(ZookeeperService.java:326)
at com.suning.cybertron.superion.worker.containermanager.zookeeper.ZookeeperService.serviceStart(Zookeep

@RebornHuan
Copy link
Author

[zk: localhost:2181(CONNECTED) 47] ls /workers
[10.27.89.16, 10.27.89.14, 10.27.89.13, 192.168.146.129, 10.22.28.198, 192.168.126.1]

@Randgalt
Copy link
Contributor

Please open issues on the Apache Jira website: https://issues.apache.org/jira/browse/CURATOR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants