Create a ZooKeeper node

Create node, use absolute path to add data

Get path [watch]

[zk: localhost:2181(CONNECTED) 19] get /20170618
tianmiao
cZxid = 0x500000004
ctime = Sun Jun 18 13:19:30 CST 2017
mZxid = 0x500000004
mtime = Sun Jun 18 13:19:30 CST 2017
pZxid = 0x500000004
cversion = 0
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 8
numChildren = 0
[zk: localhost:2181(CONNECTED) 20] 
Copy the code