Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
zkcli doesn't allow me to update a znode that already exists, perhaps using a -f (force) flag?
Currently, if I want to putfile for a znode that already exists, results in:
Exception in thread "main" org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /clusterstate.json
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.solr.common.cloud.SolrZkClient$6.execute(SolrZkClient.java:273)
at org.apache.solr.common.cloud.SolrZkClient$6.execute(SolrZkClient.java:270)
at org.apache.solr.common.cloud.ZkCmdExecutor.retryOperation(ZkCmdExecutor.java:73)
at org.apache.solr.common.cloud.SolrZkClient.create(SolrZkClient.java:270)
at org.apache.solr.cloud.ZkCLI.main(ZkCLI.java:268)
The workaround is to use ZooKeeper's command-line set command with "`cat <file>`"