[root@cdh2 ~]# jps
3527 Jps
2763 QuorumPeerMain
2710 QuorumPeerMain
2737 QuorumPeerMain
[root@cdh2 ~]# cd /user/local/zookeeper-3.4.6
[root@cdh2 zookeeper-3.4.6]# bin/zkServer.sh status
JMX enabled by default
Using config: /user/local/zookeeper-3.4.6/bin/../conf/zoo.cfg
Mode: follower
[root@cdh2 zookeeper-3.4.6]# bin/zkCli.sh -server 127.0.0.1:2181
Connecting to 127.0.0.1:2181
2016-06-30 02:29:24,896 [myid:] - INFO [main:Environment@100] - Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
2016-06-30 02:29:24,968 [myid:] - INFO [main:Environment@100] - Client environment:host.name=localhost
2016-06-30 02:29:24,968 [myid:] - INFO [main:Environment@100] - Client environment:java.version=1.7.0_67
2016-06-30 02:29:25,031 [myid:] - INFO [main:Environment@100] - Client environment:java.vendor=Oracle Corporation
2016-06-30 02:29:25,033 [myid:] - INFO [main:Environment@100] - Client environment:java.home=/user/local/jdk/jre
2016-06-30 02:29:25,033 [myid:] - INFO [main:Environment@100] - Client environment:java.class.path=/user/local/zookeeper-3.4.6/bin/../build/classes:/user/local/zookeeper-3.4.6/bin/../build/lib/*.jar:/user/local/zookeeper-3.4.6/bin/../lib/slf4j-log4j12-1.6.1.jar:/user/local/zookeeper-3.4.6/bin/../lib/slf4j-api-1.6.1.jar:/user/local/zookeeper-3.4.6/bin/../lib/netty-3.7.0.Final.jar:/user/local/zookeeper-3.4.6/bin/../lib/log4j-1.2.16.jar:/user/local/zookeeper-3.4.6/bin/../lib/jline-0.9.94.jar:/user/local/zookeeper-3.4.6/bin/../zookeeper-3.4.6.jar:/user/local/zookeeper-3.4.6/bin/../src/java/lib/*.jar:/user/local/zookeeper-3.4.6/bin/../conf:.:/user/local/jdk/lib:/user/local/jdk/jre/lib
2016-06-30 02:29:25,034 [myid:] - INFO [main:Environment@100] - Client environment:java.library.path=/usr/java/packages/lib/i386:/lib:/usr/lib
2016-06-30 02:29:25,034 [myid:] - INFO [main:Environment@100] - Client environment:java.io.tmpdir=/tmp
2016-06-30 02:29:25,034 [myid:] - INFO [main:Environment@100] - Client environment:java.compiler=<NA>
2016-06-30 02:29:25,038 [myid:] - INFO [main:Environment@100] - Client environment:os.name=Linux
2016-06-30 02:29:25,038 [myid:] - INFO [main:Environment@100] - Client environment:os.arch=i386
2016-06-30 02:29:25,038 [myid:] - INFO [main:Environment@100] - Client environment:os.version=2.6.32-358.el6.i686
2016-06-30 02:29:25,041 [myid:] - INFO [main:Environment@100] - Client environment:user.name=root
2016-06-30 02:29:25,045 [myid:] - INFO [main:Environment@100] - Client environment:user.home=/root
2016-06-30 02:29:25,045 [myid:] - INFO [main:Environment@100] - Client environment:user.dir=/user/local/zookeeper-3.4.6
2016-06-30 02:29:25,088 [myid:] - INFO [main:ZooKeeper@438] - Initiating client connection, connectString=127.0.0.1:2181 sessionTimeout=30000 watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@e13c84
Welcome to ZooKeeper!
2016-06-30 02:29:26,319 [myid:] - INFO [main-SendThread(127.0.0.1:2181):ClientCnxn$SendThread@975] - Opening socket connection to server 127.0.0.1/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
JLine support is enabled
2016-06-30 02:29:26,653 [myid:] - INFO [main-SendThread(127.0.0.1:2181):ClientCnxn$SendThread@852] - Socket connection established to 127.0.0.1/127.0.0.1:2181, initiating session
2016-06-30 02:29:26,943 [myid:] - INFO [main-SendThread(127.0.0.1:2181):ClientCnxn$SendThread@1235] - Session establishment complete on server 127.0.0.1/127.0.0.1:2181, sessionid = 0x155a09611210001, negotiated timeout = 30000
WATCHER::
WatchedEvent state:SyncConnected type:None path:null
[zk: 127.0.0.1:2181(CONNECTED) 0] get /mykey
Node does not exist: /mykey
[zk: 127.0.0.1:2181(CONNECTED) 1] create /mykey myvalue
Created /mykey
[zk: 127.0.0.1:2181(CONNECTED) 2] [root@cdh2 zookeeper-3.4.6]# jps
2763 QuorumPeerMain
3784 Jps
2710 QuorumPeerMain
2737 QuorumPeerMain
[root@cdh2 zookeeper-3.4.6]# jps
2763 QuorumPeerMain
3796 Jps
2710 QuorumPeerMain
2737 QuorumPeerMain
[root@cdh2 zookeeper-3.4.6]# bin/zkServer.sh status
JMX enabled by default
Using config: /user/local/zookeeper-3.4.6/bin/../conf/zoo.cfg
Mode: follower
[root@cdh2 zookeeper-3.4.6]#
[root@cdh2 ~]# pwd
/root
[root@cdh2 ~]# cd /user/local/zookeeper-3.4.6_1
You have mail in /var/spool/mail/root
[root@cdh2 zookeeper-3.4.6_1]# cd /user/local/zookeeper-3.4.6_1
[root@cdh2 zookeeper-3.4.6_1]# bin/zkServer.sh status
JMX enabled by default
Using config: /user/local/zookeeper-3.4.6_1/bin/../conf/zoo.cfg
Mode: leader
[root@cdh2 zookeeper-3.4.6_1]# bin/zkCli.sh -server 127.0.0.1:2182
Connecting to 127.0.0.1:2182
2016-06-30 02:29:13,994 [myid:] - INFO [main:Environment@100] - Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
2016-06-30 02:29:14,048 [myid:] - INFO [main:Environment@100] - Client environment:host.name=localhost
2016-06-30 02:29:14,049 [myid:] - INFO [main:Environment@100] - Client environment:java.version=1.7.0_67
2016-06-30 02:29:14,107 [myid:] - INFO [main:Environment@100] - Client environment:java.vendor=Oracle Corporation
2016-06-30 02:29:14,107 [myid:] - INFO [main:Environment@100] - Client environment:java.home=/user/local/jdk/jre
2016-06-30 02:29:14,107 [myid:] - INFO [main:Environment@100] - Client environment:java.class.path=/user/local/zookeeper-3.4.6_1/bin/../build/classes:/user/local/zookeeper-3.4.6_1/bin/../build/lib/*.jar:/user/local/zookeeper-3.4.6_1/bin/../lib/slf4j-log4j12-1.6.1.jar:/user/local/zookeeper-3.4.6_1/bin/../lib/slf4j-api-1.6.1.jar:/user/local/zookeeper-3.4.6_1/bin/../lib/netty-3.7.0.Final.jar:/user/local/zookeeper-3.4.6_1/bin/../lib/log4j-1.2.16.jar:/user/local/zookeeper-3.4.6_1/bin/../lib/jline-0.9.94.jar:/user/local/zookeeper-3.4.6_1/bin/../zookeeper-3.4.6.jar:/user/local/zookeeper-3.4.6_1/bin/../src/java/lib/*.jar:/user/local/zookeeper-3.4.6_1/bin/../conf:.:/user/local/jdk/lib:/user/local/jdk/jre/lib
2016-06-30 02:29:14,107 [myid:] - INFO [main:Environment@100] - Client environment:java.library.path=/usr/java/packages/lib/i386:/lib:/usr/lib
2016-06-30 02:29:14,107 [myid:] - INFO [main:Environment@100] - Client environment:java.io.tmpdir=/tmp
2016-06-30 02:29:14,113 [myid:] - INFO [main:Environment@100] - Client environment:java.compiler=<NA>
2016-06-30 02:29:14,113 [myid:] - INFO [main:Environment@100] - Client environment:os.name=Linux
2016-06-30 02:29:14,114 [myid:] - INFO [main:Environment@100] - Client environment:os.arch=i386
2016-06-30 02:29:14,115 [myid:] - INFO [main:Environment@100] - Client environment:os.version=2.6.32-358.el6.i686
2016-06-30 02:29:14,115 [myid:] - INFO [main:Environment@100] - Client environment:user.name=root
2016-06-30 02:29:14,115 [myid:] - INFO [main:Environment@100] - Client environment:user.home=/root
2016-06-30 02:29:14,116 [myid:] - INFO [main:Environment@100] - Client environment:user.dir=/user/local/zookeeper-3.4.6_1
2016-06-30 02:29:14,137 [myid:] - INFO [main:ZooKeeper@438] - Initiating client connection, connectString=127.0.0.1:2182 sessionTimeout=30000 watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@1787338
Welcome to ZooKeeper!
2016-06-30 02:29:14,606 [myid:] - INFO [main-SendThread(127.0.0.1:2182):ClientCnxn$SendThread@975] - Opening socket connection to server 127.0.0.1/127.0.0.1:2182. Will not attempt to authenticate using SASL (unknown error)
JLine support is enabled
2016-06-30 02:29:14,915 [myid:] - INFO [main-SendThread(127.0.0.1:2182):ClientCnxn$SendThread@852] - Socket connection established to 127.0.0.1/127.0.0.1:2182, initiating session
2016-06-30 02:29:15,165 [myid:] - INFO [main-SendThread(127.0.0.1:2182):ClientCnxn$SendThread@1235] - Session establishment complete on server 127.0.0.1/127.0.0.1:2182, sessionid = 0x255a09612ba0001, negotiated timeout = 30000
WATCHER::
WatchedEvent state:SyncConnected type:None path:null
[zk: 127.0.0.1:2182(CONNECTED) 0] get /mykey
Node does not exist: /mykey
[zk: 127.0.0.1:2182(CONNECTED) 1] get /mykey
myvalue
cZxid = 0x20000000a
ctime = Thu Jun 30 02:32:19 PDT 2016
mZxid = 0x20000000a
mtime = Thu Jun 30 02:32:19 PDT 2016
pZxid = 0x20000000a
cversion = 0
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 7
numChildren = 0
[zk: 127.0.0.1:2182(CONNECTED) 2] [root@cdh2 zookeeper-3.4.6_1]# jps
3691 ZooKeeperMain
2763 QuorumPeerMain
3640 ZooKeeperMain
2710 QuorumPeerMain
3757 Jps
2737 QuorumPeerMain
[root@cdh2 zookeeper-3.4.6_1]# jps
3809 Jps
2763 QuorumPeerMain
2710 QuorumPeerMain
2737 QuorumPeerMain
[root@cdh2 zookeeper-3.4.6_1]# bin/zkServer.sh status
JMX enabled by default
Using config: /user/local/zookeeper-3.4.6_1/bin/../conf/zoo.cfg
Mode: leader
[root@cdh2 zookeeper-3.4.6_1]#
[root@cdh2 ~]# cd /user/local/zookeeper-3.4.6_2
[root@cdh2 zookeeper-3.4.6_2]# bin/zkServer.sh status
JMX enabled by default
Using config: /user/local/zookeeper-3.4.6_2/bin/../conf/zoo.cfg
Mode: follower
[root@cdh2 zookeeper-3.4.6_2]# bin/zkCli.sh -server 127.0.0.1:2183
Connecting to 127.0.0.1:2183
2016-06-30 02:29:02,488 [myid:] - INFO [main:Environment@100] - Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
2016-06-30 02:29:02,550 [myid:] - INFO [main:Environment@100] - Client environment:host.name=localhost
2016-06-30 02:29:02,550 [myid:] - INFO [main:Environment@100] - Client environment:java.version=1.7.0_67
2016-06-30 02:29:02,625 [myid:] - INFO [main:Environment@100] - Client environment:java.vendor=Oracle Corporation
2016-06-30 02:29:02,627 [myid:] - INFO [main:Environment@100] - Client environment:java.home=/user/local/jdk/jre
2016-06-30 02:29:02,627 [myid:] - INFO [main:Environment@100] - Client environment:java.class.path=/user/local/zookeeper-3.4.6_2/bin/../build/classes:/user/local/zookeeper-3.4.6_2/bin/../build/lib/*.jar:/user/local/zookeeper-3.4.6_2/bin/../lib/slf4j-log4j12-1.6.1.jar:/user/local/zookeeper-3.4.6_2/bin/../lib/slf4j-api-1.6.1.jar:/user/local/zookeeper-3.4.6_2/bin/../lib/netty-3.7.0.Final.jar:/user/local/zookeeper-3.4.6_2/bin/../lib/log4j-1.2.16.jar:/user/local/zookeeper-3.4.6_2/bin/../lib/jline-0.9.94.jar:/user/local/zookeeper-3.4.6_2/bin/../zookeeper-3.4.6.jar:/user/local/zookeeper-3.4.6_2/bin/../src/java/lib/*.jar:/user/local/zookeeper-3.4.6_2/bin/../conf:.:/user/local/jdk/lib:/user/local/jdk/jre/lib
2016-06-30 02:29:02,628 [myid:] - INFO [main:Environment@100] - Client environment:java.library.path=/usr/java/packages/lib/i386:/lib:/usr/lib
2016-06-30 02:29:02,628 [myid:] - INFO [main:Environment@100] - Client environment:java.io.tmpdir=/tmp
2016-06-30 02:29:02,632 [myid:] - INFO [main:Environment@100] - Client environment:java.compiler=<NA>
2016-06-30 02:29:02,636 [myid:] - INFO [main:Environment@100] - Client environment:os.name=Linux
2016-06-30 02:29:02,636 [myid:] - INFO [main:Environment@100] - Client environment:os.arch=i386
2016-06-30 02:29:02,636 [myid:] - INFO [main:Environment@100] - Client environment:os.version=2.6.32-358.el6.i686
2016-06-30 02:29:02,641 [myid:] - INFO [main:Environment@100] - Client environment:user.name=root
2016-06-30 02:29:02,641 [myid:] - INFO [main:Environment@100] - Client environment:user.home=/root
2016-06-30 02:29:02,642 [myid:] - INFO [main:Environment@100] - Client environment:user.dir=/user/local/zookeeper-3.4.6_2
2016-06-30 02:29:02,668 [myid:] - INFO [main:ZooKeeper@438] - Initiating client connection, connectString=127.0.0.1:2183 sessionTimeout=30000 watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@e13c84
Welcome to ZooKeeper!
2016-06-30 02:29:03,294 [myid:] - INFO [main-SendThread(127.0.0.1:2183):ClientCnxn$SendThread@975] - Opening socket connection to server 127.0.0.1/127.0.0.1:2183. Will not attempt to authenticate using SASL (unknown error)
JLine support is enabled
2016-06-30 02:29:03,651 [myid:] - INFO [main-SendThread(127.0.0.1:2183):ClientCnxn$SendThread@852] - Socket connection established to 127.0.0.1/127.0.0.1:2183, initiating session
2016-06-30 02:29:03,993 [myid:] - INFO [main-SendThread(127.0.0.1:2183):ClientCnxn$SendThread@1235] - Session establishment complete on server 127.0.0.1/127.0.0.1:2183, sessionid = 0x355a0963c980001, negotiated timeout = 30000
WATCHER::
WatchedEvent state:SyncConnected type:None path:null
[zk: 127.0.0.1:2183(CONNECTED) 0] get /mykey
Node does not exist: /mykey
[zk: 127.0.0.1:2183(CONNECTED) 1] get /mykey
myvalue
cZxid = 0x20000000a
ctime = Thu Jun 30 02:32:19 PDT 2016
mZxid = 0x20000000a
mtime = Thu Jun 30 02:32:19 PDT 2016
pZxid = 0x20000000a
cversion = 0
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 7
numChildren = 0
[zk: 127.0.0.1:2183(CONNECTED) 2] [root@cdh2 zookeeper-3.4.6_2]# jps
3691 ZooKeeperMain
2763 QuorumPeerMain
2710 QuorumPeerMain
3771 Jps
2737 QuorumPeerMain
[root@cdh2 zookeeper-3.4.6_2]# jps
2763 QuorumPeerMain
3818 Jps
2710 QuorumPeerMain
2737 QuorumPeerMain
[root@cdh2 zookeeper-3.4.6_2]# bin/zkServer.sh status
JMX enabled by default
Using config: /user/local/zookeeper-3.4.6_2/bin/../conf/zoo.cfg
Mode: follower
[root@cdh2 zookeeper-3.4.6_2]#
3527 Jps
2763 QuorumPeerMain
2710 QuorumPeerMain
2737 QuorumPeerMain
[root@cdh2 ~]# cd /user/local/zookeeper-3.4.6
[root@cdh2 zookeeper-3.4.6]# bin/zkServer.sh status
JMX enabled by default
Using config: /user/local/zookeeper-3.4.6/bin/../conf/zoo.cfg
Mode: follower
[root@cdh2 zookeeper-3.4.6]# bin/zkCli.sh -server 127.0.0.1:2181
Connecting to 127.0.0.1:2181
2016-06-30 02:29:24,896 [myid:] - INFO [main:Environment@100] - Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
2016-06-30 02:29:24,968 [myid:] - INFO [main:Environment@100] - Client environment:host.name=localhost
2016-06-30 02:29:24,968 [myid:] - INFO [main:Environment@100] - Client environment:java.version=1.7.0_67
2016-06-30 02:29:25,031 [myid:] - INFO [main:Environment@100] - Client environment:java.vendor=Oracle Corporation
2016-06-30 02:29:25,033 [myid:] - INFO [main:Environment@100] - Client environment:java.home=/user/local/jdk/jre
2016-06-30 02:29:25,033 [myid:] - INFO [main:Environment@100] - Client environment:java.class.path=/user/local/zookeeper-3.4.6/bin/../build/classes:/user/local/zookeeper-3.4.6/bin/../build/lib/*.jar:/user/local/zookeeper-3.4.6/bin/../lib/slf4j-log4j12-1.6.1.jar:/user/local/zookeeper-3.4.6/bin/../lib/slf4j-api-1.6.1.jar:/user/local/zookeeper-3.4.6/bin/../lib/netty-3.7.0.Final.jar:/user/local/zookeeper-3.4.6/bin/../lib/log4j-1.2.16.jar:/user/local/zookeeper-3.4.6/bin/../lib/jline-0.9.94.jar:/user/local/zookeeper-3.4.6/bin/../zookeeper-3.4.6.jar:/user/local/zookeeper-3.4.6/bin/../src/java/lib/*.jar:/user/local/zookeeper-3.4.6/bin/../conf:.:/user/local/jdk/lib:/user/local/jdk/jre/lib
2016-06-30 02:29:25,034 [myid:] - INFO [main:Environment@100] - Client environment:java.library.path=/usr/java/packages/lib/i386:/lib:/usr/lib
2016-06-30 02:29:25,034 [myid:] - INFO [main:Environment@100] - Client environment:java.io.tmpdir=/tmp
2016-06-30 02:29:25,034 [myid:] - INFO [main:Environment@100] - Client environment:java.compiler=<NA>
2016-06-30 02:29:25,038 [myid:] - INFO [main:Environment@100] - Client environment:os.name=Linux
2016-06-30 02:29:25,038 [myid:] - INFO [main:Environment@100] - Client environment:os.arch=i386
2016-06-30 02:29:25,038 [myid:] - INFO [main:Environment@100] - Client environment:os.version=2.6.32-358.el6.i686
2016-06-30 02:29:25,041 [myid:] - INFO [main:Environment@100] - Client environment:user.name=root
2016-06-30 02:29:25,045 [myid:] - INFO [main:Environment@100] - Client environment:user.home=/root
2016-06-30 02:29:25,045 [myid:] - INFO [main:Environment@100] - Client environment:user.dir=/user/local/zookeeper-3.4.6
2016-06-30 02:29:25,088 [myid:] - INFO [main:ZooKeeper@438] - Initiating client connection, connectString=127.0.0.1:2181 sessionTimeout=30000 watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@e13c84
Welcome to ZooKeeper!
2016-06-30 02:29:26,319 [myid:] - INFO [main-SendThread(127.0.0.1:2181):ClientCnxn$SendThread@975] - Opening socket connection to server 127.0.0.1/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
JLine support is enabled
2016-06-30 02:29:26,653 [myid:] - INFO [main-SendThread(127.0.0.1:2181):ClientCnxn$SendThread@852] - Socket connection established to 127.0.0.1/127.0.0.1:2181, initiating session
2016-06-30 02:29:26,943 [myid:] - INFO [main-SendThread(127.0.0.1:2181):ClientCnxn$SendThread@1235] - Session establishment complete on server 127.0.0.1/127.0.0.1:2181, sessionid = 0x155a09611210001, negotiated timeout = 30000
WATCHER::
WatchedEvent state:SyncConnected type:None path:null
[zk: 127.0.0.1:2181(CONNECTED) 0] get /mykey
Node does not exist: /mykey
[zk: 127.0.0.1:2181(CONNECTED) 1] create /mykey myvalue
Created /mykey
[zk: 127.0.0.1:2181(CONNECTED) 2] [root@cdh2 zookeeper-3.4.6]# jps
2763 QuorumPeerMain
3784 Jps
2710 QuorumPeerMain
2737 QuorumPeerMain
[root@cdh2 zookeeper-3.4.6]# jps
2763 QuorumPeerMain
3796 Jps
2710 QuorumPeerMain
2737 QuorumPeerMain
[root@cdh2 zookeeper-3.4.6]# bin/zkServer.sh status
JMX enabled by default
Using config: /user/local/zookeeper-3.4.6/bin/../conf/zoo.cfg
Mode: follower
[root@cdh2 zookeeper-3.4.6]#
[root@cdh2 ~]# pwd
/root
[root@cdh2 ~]# cd /user/local/zookeeper-3.4.6_1
You have mail in /var/spool/mail/root
[root@cdh2 zookeeper-3.4.6_1]# cd /user/local/zookeeper-3.4.6_1
[root@cdh2 zookeeper-3.4.6_1]# bin/zkServer.sh status
JMX enabled by default
Using config: /user/local/zookeeper-3.4.6_1/bin/../conf/zoo.cfg
Mode: leader
[root@cdh2 zookeeper-3.4.6_1]# bin/zkCli.sh -server 127.0.0.1:2182
Connecting to 127.0.0.1:2182
2016-06-30 02:29:13,994 [myid:] - INFO [main:Environment@100] - Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
2016-06-30 02:29:14,048 [myid:] - INFO [main:Environment@100] - Client environment:host.name=localhost
2016-06-30 02:29:14,049 [myid:] - INFO [main:Environment@100] - Client environment:java.version=1.7.0_67
2016-06-30 02:29:14,107 [myid:] - INFO [main:Environment@100] - Client environment:java.vendor=Oracle Corporation
2016-06-30 02:29:14,107 [myid:] - INFO [main:Environment@100] - Client environment:java.home=/user/local/jdk/jre
2016-06-30 02:29:14,107 [myid:] - INFO [main:Environment@100] - Client environment:java.class.path=/user/local/zookeeper-3.4.6_1/bin/../build/classes:/user/local/zookeeper-3.4.6_1/bin/../build/lib/*.jar:/user/local/zookeeper-3.4.6_1/bin/../lib/slf4j-log4j12-1.6.1.jar:/user/local/zookeeper-3.4.6_1/bin/../lib/slf4j-api-1.6.1.jar:/user/local/zookeeper-3.4.6_1/bin/../lib/netty-3.7.0.Final.jar:/user/local/zookeeper-3.4.6_1/bin/../lib/log4j-1.2.16.jar:/user/local/zookeeper-3.4.6_1/bin/../lib/jline-0.9.94.jar:/user/local/zookeeper-3.4.6_1/bin/../zookeeper-3.4.6.jar:/user/local/zookeeper-3.4.6_1/bin/../src/java/lib/*.jar:/user/local/zookeeper-3.4.6_1/bin/../conf:.:/user/local/jdk/lib:/user/local/jdk/jre/lib
2016-06-30 02:29:14,107 [myid:] - INFO [main:Environment@100] - Client environment:java.library.path=/usr/java/packages/lib/i386:/lib:/usr/lib
2016-06-30 02:29:14,107 [myid:] - INFO [main:Environment@100] - Client environment:java.io.tmpdir=/tmp
2016-06-30 02:29:14,113 [myid:] - INFO [main:Environment@100] - Client environment:java.compiler=<NA>
2016-06-30 02:29:14,113 [myid:] - INFO [main:Environment@100] - Client environment:os.name=Linux
2016-06-30 02:29:14,114 [myid:] - INFO [main:Environment@100] - Client environment:os.arch=i386
2016-06-30 02:29:14,115 [myid:] - INFO [main:Environment@100] - Client environment:os.version=2.6.32-358.el6.i686
2016-06-30 02:29:14,115 [myid:] - INFO [main:Environment@100] - Client environment:user.name=root
2016-06-30 02:29:14,115 [myid:] - INFO [main:Environment@100] - Client environment:user.home=/root
2016-06-30 02:29:14,116 [myid:] - INFO [main:Environment@100] - Client environment:user.dir=/user/local/zookeeper-3.4.6_1
2016-06-30 02:29:14,137 [myid:] - INFO [main:ZooKeeper@438] - Initiating client connection, connectString=127.0.0.1:2182 sessionTimeout=30000 watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@1787338
Welcome to ZooKeeper!
2016-06-30 02:29:14,606 [myid:] - INFO [main-SendThread(127.0.0.1:2182):ClientCnxn$SendThread@975] - Opening socket connection to server 127.0.0.1/127.0.0.1:2182. Will not attempt to authenticate using SASL (unknown error)
JLine support is enabled
2016-06-30 02:29:14,915 [myid:] - INFO [main-SendThread(127.0.0.1:2182):ClientCnxn$SendThread@852] - Socket connection established to 127.0.0.1/127.0.0.1:2182, initiating session
2016-06-30 02:29:15,165 [myid:] - INFO [main-SendThread(127.0.0.1:2182):ClientCnxn$SendThread@1235] - Session establishment complete on server 127.0.0.1/127.0.0.1:2182, sessionid = 0x255a09612ba0001, negotiated timeout = 30000
WATCHER::
WatchedEvent state:SyncConnected type:None path:null
[zk: 127.0.0.1:2182(CONNECTED) 0] get /mykey
Node does not exist: /mykey
[zk: 127.0.0.1:2182(CONNECTED) 1] get /mykey
myvalue
cZxid = 0x20000000a
ctime = Thu Jun 30 02:32:19 PDT 2016
mZxid = 0x20000000a
mtime = Thu Jun 30 02:32:19 PDT 2016
pZxid = 0x20000000a
cversion = 0
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 7
numChildren = 0
[zk: 127.0.0.1:2182(CONNECTED) 2] [root@cdh2 zookeeper-3.4.6_1]# jps
3691 ZooKeeperMain
2763 QuorumPeerMain
3640 ZooKeeperMain
2710 QuorumPeerMain
3757 Jps
2737 QuorumPeerMain
[root@cdh2 zookeeper-3.4.6_1]# jps
3809 Jps
2763 QuorumPeerMain
2710 QuorumPeerMain
2737 QuorumPeerMain
[root@cdh2 zookeeper-3.4.6_1]# bin/zkServer.sh status
JMX enabled by default
Using config: /user/local/zookeeper-3.4.6_1/bin/../conf/zoo.cfg
Mode: leader
[root@cdh2 zookeeper-3.4.6_1]#
[root@cdh2 ~]# cd /user/local/zookeeper-3.4.6_2
[root@cdh2 zookeeper-3.4.6_2]# bin/zkServer.sh status
JMX enabled by default
Using config: /user/local/zookeeper-3.4.6_2/bin/../conf/zoo.cfg
Mode: follower
[root@cdh2 zookeeper-3.4.6_2]# bin/zkCli.sh -server 127.0.0.1:2183
Connecting to 127.0.0.1:2183
2016-06-30 02:29:02,488 [myid:] - INFO [main:Environment@100] - Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
2016-06-30 02:29:02,550 [myid:] - INFO [main:Environment@100] - Client environment:host.name=localhost
2016-06-30 02:29:02,550 [myid:] - INFO [main:Environment@100] - Client environment:java.version=1.7.0_67
2016-06-30 02:29:02,625 [myid:] - INFO [main:Environment@100] - Client environment:java.vendor=Oracle Corporation
2016-06-30 02:29:02,627 [myid:] - INFO [main:Environment@100] - Client environment:java.home=/user/local/jdk/jre
2016-06-30 02:29:02,627 [myid:] - INFO [main:Environment@100] - Client environment:java.class.path=/user/local/zookeeper-3.4.6_2/bin/../build/classes:/user/local/zookeeper-3.4.6_2/bin/../build/lib/*.jar:/user/local/zookeeper-3.4.6_2/bin/../lib/slf4j-log4j12-1.6.1.jar:/user/local/zookeeper-3.4.6_2/bin/../lib/slf4j-api-1.6.1.jar:/user/local/zookeeper-3.4.6_2/bin/../lib/netty-3.7.0.Final.jar:/user/local/zookeeper-3.4.6_2/bin/../lib/log4j-1.2.16.jar:/user/local/zookeeper-3.4.6_2/bin/../lib/jline-0.9.94.jar:/user/local/zookeeper-3.4.6_2/bin/../zookeeper-3.4.6.jar:/user/local/zookeeper-3.4.6_2/bin/../src/java/lib/*.jar:/user/local/zookeeper-3.4.6_2/bin/../conf:.:/user/local/jdk/lib:/user/local/jdk/jre/lib
2016-06-30 02:29:02,628 [myid:] - INFO [main:Environment@100] - Client environment:java.library.path=/usr/java/packages/lib/i386:/lib:/usr/lib
2016-06-30 02:29:02,628 [myid:] - INFO [main:Environment@100] - Client environment:java.io.tmpdir=/tmp
2016-06-30 02:29:02,632 [myid:] - INFO [main:Environment@100] - Client environment:java.compiler=<NA>
2016-06-30 02:29:02,636 [myid:] - INFO [main:Environment@100] - Client environment:os.name=Linux
2016-06-30 02:29:02,636 [myid:] - INFO [main:Environment@100] - Client environment:os.arch=i386
2016-06-30 02:29:02,636 [myid:] - INFO [main:Environment@100] - Client environment:os.version=2.6.32-358.el6.i686
2016-06-30 02:29:02,641 [myid:] - INFO [main:Environment@100] - Client environment:user.name=root
2016-06-30 02:29:02,641 [myid:] - INFO [main:Environment@100] - Client environment:user.home=/root
2016-06-30 02:29:02,642 [myid:] - INFO [main:Environment@100] - Client environment:user.dir=/user/local/zookeeper-3.4.6_2
2016-06-30 02:29:02,668 [myid:] - INFO [main:ZooKeeper@438] - Initiating client connection, connectString=127.0.0.1:2183 sessionTimeout=30000 watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@e13c84
Welcome to ZooKeeper!
2016-06-30 02:29:03,294 [myid:] - INFO [main-SendThread(127.0.0.1:2183):ClientCnxn$SendThread@975] - Opening socket connection to server 127.0.0.1/127.0.0.1:2183. Will not attempt to authenticate using SASL (unknown error)
JLine support is enabled
2016-06-30 02:29:03,651 [myid:] - INFO [main-SendThread(127.0.0.1:2183):ClientCnxn$SendThread@852] - Socket connection established to 127.0.0.1/127.0.0.1:2183, initiating session
2016-06-30 02:29:03,993 [myid:] - INFO [main-SendThread(127.0.0.1:2183):ClientCnxn$SendThread@1235] - Session establishment complete on server 127.0.0.1/127.0.0.1:2183, sessionid = 0x355a0963c980001, negotiated timeout = 30000
WATCHER::
WatchedEvent state:SyncConnected type:None path:null
[zk: 127.0.0.1:2183(CONNECTED) 0] get /mykey
Node does not exist: /mykey
[zk: 127.0.0.1:2183(CONNECTED) 1] get /mykey
myvalue
cZxid = 0x20000000a
ctime = Thu Jun 30 02:32:19 PDT 2016
mZxid = 0x20000000a
mtime = Thu Jun 30 02:32:19 PDT 2016
pZxid = 0x20000000a
cversion = 0
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 7
numChildren = 0
[zk: 127.0.0.1:2183(CONNECTED) 2] [root@cdh2 zookeeper-3.4.6_2]# jps
3691 ZooKeeperMain
2763 QuorumPeerMain
2710 QuorumPeerMain
3771 Jps
2737 QuorumPeerMain
[root@cdh2 zookeeper-3.4.6_2]# jps
2763 QuorumPeerMain
3818 Jps
2710 QuorumPeerMain
2737 QuorumPeerMain
[root@cdh2 zookeeper-3.4.6_2]# bin/zkServer.sh status
JMX enabled by default
Using config: /user/local/zookeeper-3.4.6_2/bin/../conf/zoo.cfg
Mode: follower
[root@cdh2 zookeeper-3.4.6_2]#