secret
Created

  • Download Gist
log ls
1 2 3 4 5 6 7
# zookeeper logs for my connect and ls /
2012-10-30 22:09:20,525 [myid:1] - INFO [CommitProcessor:1:ZooKeeperServer@595] - Established session 0x13ab3a4e86d0005 with negotiated timeout 30000 for client /127.0.0.1:46462
EndOfStreamException: Unable to read additional data from client sessionid 0x13ab3a4e86d0005, likely client has closed socket
at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:220)
at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208)
at java.lang.Thread.run(Thread.java:722)
2012-10-30 22:09:40,528 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1001] - Closed socket connection for client /127.0.0.1:46462 which had sessionid 0x13ab3a4e86d0005
log ruok
1 2 3 4
# zookeeper logs showing it responding to 'ruok' from exhibitor
2012-10-30 22:11:13,986 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] - Accepted socket connection from /127.0.0.1:46551
2012-10-30 22:11:13,987 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@821] - Processing ruok command from /127.0.0.1:46551
2012-10-30 22:11:13,988 [myid:1] - INFO [Thread-635:NIOServerCnxn@1001] - Closed socket connection for client /127.0.0.1:46551 (no session established for client)
zkcli
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
# attempting to read /
$ /opt/zookeeper/bin/zkCli.sh
Connecting to localhost:2181
2012-10-30 22:07:38,560 [myid:] - INFO [main:Environment@100] - Client environment:zookeeper.version=3.4.4-1386507, built on 09/17/2012 08:33 GMT
2012-10-30 22:07:38,658 [myid:] - INFO [main:Environment@100] - Client environment:host.name=zk-1
2012-10-30 22:07:38,659 [myid:] - INFO [main:Environment@100] - Client environment:java.version=1.7.0_07
2012-10-30 22:07:38,660 [myid:] - INFO [main:Environment@100] - Client environment:java.vendor=Oracle Corporation
2012-10-30 22:07:38,660 [myid:] - INFO [main:Environment@100] - Client environment:java.home=/usr/lib/jvm/java-7-oracle-1.7.0.7/jre
2012-10-30 22:07:38,661 [myid:] - INFO [main:Environment@100] - Client environment:java.class.path=/opt/zookeeper/bin/../build/classes:/opt/zookeeper/bin/../build/lib/*.jar:/opt/zookeeper/bin/../lib/slf4j-log4j12-1.6.1.jar:/opt/zookeeper/bin/../lib/slf4j-api-1.6.1.jar:/opt/zookeeper/bin/../lib/netty-3.2.2.Final.jar:/opt/zookeeper/bin/../lib/log4j-1.2.15.jar:/opt/zookeeper/bin/../lib/jline-0.9.94.jar:/opt/zookeeper/bin/../zookeeper-3.4.4.jar:/opt/zookeeper/bin/../src/java/lib/*.jar:/opt/zookeeper/bin/../conf:
2012-10-30 22:07:38,661 [myid:] - INFO [main:Environment@100] - Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
2012-10-30 22:07:38,662 [myid:] - INFO [main:Environment@100] - Client environment:java.io.tmpdir=/tmp
2012-10-30 22:07:38,663 [myid:] - INFO [main:Environment@100] - Client environment:java.compiler=<NA>
2012-10-30 22:07:38,663 [myid:] - INFO [main:Environment@100] - Client environment:os.name=Linux
2012-10-30 22:07:38,664 [myid:] - INFO [main:Environment@100] - Client environment:os.arch=amd64
2012-10-30 22:07:38,665 [myid:] - INFO [main:Environment@100] - Client environment:os.version=2.6.32-347-ec2
2012-10-30 22:07:38,665 [myid:] - INFO [main:Environment@100] - Client environment:user.name=ubuntu
2012-10-30 22:07:38,666 [myid:] - INFO [main:Environment@100] - Client environment:user.home=/home/ubuntu
2012-10-30 22:07:38,666 [myid:] - INFO [main:Environment@100] - Client environment:user.dir=/mnt/zookeeper
2012-10-30 22:07:38,670 [myid:] - INFO [main:ZooKeeper@433] - Initiating client connection, connectString=localhost:2181 sessionTimeout=30000 watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@37d40164
Welcome to ZooKeeper!
2012-10-30 22:07:38,725 [myid:] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@966] - Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
JLine support is enabled
2012-10-30 22:07:38,848 [myid:] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@849] - Socket connection established to localhost/127.0.0.1:2181, initiating session
2012-10-30 22:07:38,860 [myid:] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1207] - Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x13ab3a4e86d0004, negotiated timeout = 30000
 
WATCHER::
 
WatchedEvent state:SyncConnected type:None path:null
[zk: localhost:2181(CONNECTED) 0] ls /
2012-10-30 22:07:58,859 [myid:] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1083] - Client session timed out, have not heard from server in 20001ms for sessionid 0x13ab3a4e86d0004, closing socket connection and attempting reconnect
Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /
at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
 
WATCHER::
 
WatchedEvent state:Disconnected type:None path:null
at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1463)
at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1491)
at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:725)
at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:593)
at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:365)
at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:323)
at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:282)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.