ZooKeeper

Test if ZooKeeper is running in a non-error state. The server will respond with imok if it is running. Otherwise it will not respond at all.

$ echo ruok | nc zk-host 2181
imok

Lists statistics about performance and connected clients:

$ echo stat | nc zk-host 2181

Dump the contents of the ZooKeeper database into a pretty-printed text file:

$ zkdump -z zk-host:2181 -d -p -o zkdump.txt

Dump the contents of the ZooKeeper database into a machine readable JSON file:

$ zkdump -z zk-host:2181 -d -o zkdump.json
Questions? Discuss on Mailing Lists or Chat.
Found an error? Report a bug.