-Dumping and loading Zookeeper data
Dave Cahill 2013-05-01, 02:16
I've been looking at a few options for dumping and loading Zookeeper data.
If anyone here can provide insight on the current state of tools and what I
should use, that would be great.
First, I tried zktreeutil from the zookeeper-bin (3.4.5) package:
zktreeutil -z localhost:2181 -E
I can connect to that address using telnet and another zookeeper dumping
(guano), but zktreeutil gives me:
[zktreeutil] zooKeeper exception caught: Unable to connect to ZK running at
terminate called after throwing an instance of '2013-05-01
connection to server [127.0.0.1:2181]
what(): Unable to connect to ZK running at 'localhost:2181'; state=999
Aborted (core dumped)
The above is running Ubuntu 12.04.1 LTS (Precise).
I noticed that there were several patches submitted to zktree-util ( and
), but it seems none of them have been accepted - is the tool deprecated?
I then tried guano . This tool dumped the zookeeper data to a folder
structure rather than XML, but it did seem to work. If I don't find other
options, I'll go with this, but since it's outside zookeeper core and was
last updated 10 months ago, I wasn't sure about it.
At StackOverflow , someone mentioned zkConfig.py, a "contributed project
when you install zookeeper", but I can't seem to find it in the current
I did find zk_dump_tree.py in the current source code checkout, but it
to use a separate REST server, which doesn't seem ideal.
That's as far as I've gotten in my investigation - kind of a confusing
picture, so any insights appreciated!
 ZOOKEEPER-1218, Apr 2012 -
 ZOOKEEPER-1445, May 2012 -