Run zkcli.sh (zkcli.cmd) under the%zk_home%/bin directory and use the GET command to obtain data content and property information for the specified znode. For example:
[Zk:localhost:2181 (CONNECTED)] Get/zk-huey000czxid = 0x20000007cctime = Wed Mar 22:01:46 CST 2015mZxid = 0x2000000 7cmtime = Wed Mar 22:01:46 CST 2015pZxid = 0x200000080cversion = 4dataVersion = 0aclVersion = 0ephemeralOwner = 0x0data Length = 3numChildren = 4
The first line of the output is the data content of the Znode, followed by the state information of the Znode. The properties of the status information are described below:
State Properties |
description |
czxid |
Transaction ID when data node was created |
ctime |
time when the data node was created |
mzxid |
Transaction ID when the data node was last updated |
mtime |
time when the data node was last updated |
pzxid |
Transaction ID when the child node list of the data node was last modified (is a child node list change, not a child node content change) |
cversion |
child node version number |
dataversion |
Data node version number |
aclversion |
ACL version number of the data node |
ephemeralowner |
If the node is a temporary node, the SessionID of the session that created the node, or 0 |
If the node is a persistent node
datalength |
Length of data content |
numchildren |
Data node current number of child nodes |
ZooKeeper attribute description for status information stat