sh - Shell script to delete znodes(Zookeeper) -
i trying create shell script delete znodes. here command:
echo "ls /" | zookeeper-client echo "rmr /collections" | zookeeper-client
there many such nodes want delete. whenever execute above commands, delete collections node , sometime throws error. reason found whenever run "zookeeper-client" through shell script, takes time zookeeper shell come up. there way can delete such nodes ?
any appreciated.
thanks.
you can delete zookeeper-client rmr
e.g zookeeper-client rmr /test
Comments
Post a Comment