ZooKeeper attribute description for status information stat

Source: Internet
Author: User

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:

If the node is a persistent node
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
datalength   Length of data content
numchildren   Data node current number of child nodes

ZooKeeper attribute description for status information stat

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.