flags - Why is ZooKeeper changing the name of my znode? -


i learning how use zookeeper (version 3.3.3) , have running cygwin (version 1.7.9). in order create znode, following:

$ zkserver.sh start    $ zkcli.sh [zk: localhost:2181(connected) 0] create /zoo-1 "hello world!" null     created /zoo-1 

this appears work fine:

[zk: localhost:2181(connected) 1] ls / [zoo-1, zookeeper] 

however, if try use -s flag happens:

[zk: localhost:2181(connected) 2] create -s /zoo-2 "hello world!" null created /zoo-20000000007 [zk: localhost:2181(connected) 3] ls / [zoo-20000000007, zoo-1, zookeeper] 

removing flag, though, keeps name same:

[zk: localhost:2181(connected) 4] create -s /zoo-2 "hello world!" null created /zoo-2 [zk: localhost:2181(connected) 5] ls / [zoo-2, zoo-20000000007, zoo-1, zookeeper] 

why using -s flag, makes znode persistent, change name of znode? following along following tutorial http://java.dzone.com/articles/zookeeper-primer, , example same thing not happen him.

thank time!

the -s flag create sequential node. dzone article looks has mistake.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -