ls2
ls2 就是携带了stat信息的ls
代码语言:javascript复制[zk: localhost:2181(CONNECTED) 60] ls /def
[]
[zk: localhost:2181(CONNECTED) 61] ls2 /def
[]
cZxid = 0xe
ctime = Thu Dec 03 14:57:27 CST 2015
mZxid = 0xf
mtime = Thu Dec 03 15:42:21 CST 2015
pZxid = 0xe
cversion = 0
dataVersion = 1
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 3
numChildren = 0
[zk: localhost:2181(CONNECTED) 62]
rmr
递归删除
代码语言:javascript复制[zk: localhost:2181(CONNECTED) 74] ls /def
[abc]
[zk: localhost:2181(CONNECTED) 75] ls2 /def
[abc]
cZxid = 0xe
ctime = Thu Dec 03 14:57:27 CST 2015
mZxid = 0xf
mtime = Thu Dec 03 15:42:21 CST 2015
pZxid = 0x10
cversion = 1
dataVersion = 1
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 3
numChildren = 1
[zk: localhost:2181(CONNECTED) 76] delete /def
Node not empty: /def
[zk: localhost:2181(CONNECTED) 77] rmr /def
[zk: localhost:2181(CONNECTED) 78] ls /
[zookeeper]
[zk: localhost:2181(CONNECTED) 79]