Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I delete a data node which is not empty in zookeeper?

For deleting a node in zookeeper from command line interface there is a delete command. When I run it, it says:

Node not empty: /testNode

I am using this guide.

like image 674
Amit Kumar Avatar asked Dec 08 '15 10:12

Amit Kumar


1 Answers

The zkCli provides the rmr (deprecated) or deleteall command for this purpose. It will recursively delete all nodes under the path. This command did not appear until version 3.4.0. The documentation link you provided is for version 3.3.3.

like image 93
Martin Serrano Avatar answered Nov 16 '22 07:11

Martin Serrano