Hi,
My supervisor keeps getting disconnected from the zookeeper and it prints
the following error -
2014-08-20 11:55:25,431 [myid:] - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] - Accepted socket connection
from /192.168.1.9:57892
2014-08-20 11:55:25,431 [myid:] - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:ZooKeeperServer@868] - Client attempting to establish
new session at /192.168.1.9:57892
2014-08-20 11:55:25,432 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::
PrepRequestProcessor@494] - Processed session termination for sessionid:
0x147ee12c9940133
2014-08-20 11:55:25,435 [myid:] - INFO [SyncThread:0:ZooKeeperServer@617]
- Established session 0x147ee12c9940136 with negotiated timeout 20000 for
client /192.168.1.9:57892
2014-08-20 11:55:25,443 [myid:] - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1007] - Closed socket connection for
client /192.168.1.56:53190 which had sessionid 0x147ee12c9940133
2014-08-20 11:55:25,447 [myid:] - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] - Accepted socket connection
from /192.168.1.56:53191
2014-08-20 11:55:25,447 [myid:] - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:ZooKeeperServer@868] - Client attempting to establish
new session at /192.168.1.56:53191
2014-08-20 11:55:25,451 [myid:] - INFO [SyncThread:0:ZooKeeperServer@617]
- Established session 0x147ee12c9940137 with negotiated timeout 20000 for
client /192.168.1.56:53191
2014-08-20 11:55:25,611 [myid:] - INFO [ProcessThread(sid:0
cport:-1)::PrepRequestProcessor@494] - Processed session termination for
sessionid: 0x147ee12c9940134
2014-08-20 11:55:25,618 [myid:] - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1007] - Closed socket connection for
client /192.168.1.57:56067 which had sessionid 0x147ee12c9940134
2014-08-20 11:55:25,623 [myid:] - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] - Accepted socket connection
from /192.168.1.57:56069
2014-08-20 11:55:25,624 [myid:] - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:ZooKeeperServer@868] - Client attempting to establish
new session at /192.168.1.57:56069
2014-08-20 11:55:25,626 [myid:] - INFO [SyncThread:0:ZooKeeperServer@617]
- Established session 0x147ee12c9940138 with negotiated timeout 20000 for
client /192.168.1.57:56069
2014-08-20 11:55:25,710 [myid:] - INFO [ProcessThread(sid:0
cport:-1)::PrepRequestProcessor@494] - Processed session termination for
sessionid: 0x147ee12c9940135
2014-08-20 11:55:25,718 [myid:] - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1007] - Closed socket connection for
client /192.168.1.57:56068 which had sessionid 0x147ee12c9940135
2014-08-20 11:55:25,721 [myid:] - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] - Accepted socket connection
from /192.168.1.57:56070
2014-08-20 11:55:25,721 [myid:] - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:ZooKeeperServer@868] - Client attempting to establish
new session at /192.168.1.57:56070
2014-08-20 11:55:25,726 [myid:] - INFO [SyncThread:0:ZooKeeperServer@617]
- Established session 0x147ee12c9940139 with negotiated timeout 20000 for
client /192.168.1.57:56070
2014-08-20 11:56:08,628 [myid:] - WARN [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn@362] - Exception causing close of
session 0x147ee12c9940138 due to java.io.IOException: Connection reset by
peer
2014-08-20 11:56:08,628 [myid:] - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1007] - Closed socket connection for
client /192.168.1.57:56069 which had sessionid 0x147ee12c9940138
2014-08-20 11:56:08,630 [myid:] - WARN [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn@362] - Exception causing close of
session 0x147ee12c9940136 due to java.io.IOException: Connection reset by
peer
2014-08-20 11:56:08,630 [myid:] - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1007] - Closed socket connection for
client /192.168.1.9:57892 which had sessionid 0x147ee12c9940136
2014-08-20 11:56:08,631 [myid:] - WARN [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn@357] - caught end of stream exception
EndOfStreamException: Unable to read additional data from client sessionid
0x147ee12c9940137, likely client has closed socket
at
org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:228)
at
org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208)
at java.lang.Thread.run(Thread.java:745)
Do I need to change any settings in the zookeeper config to fix this???
My zoo.cfg contains the following -
tickTime=2000
initLimit=10
syncLimit=5
dataDir=/tmp/zookeeper
clientPort=2181
This looks like a sync error. I am using tick tuples in my bolt to print to
a file after every three seconds. Could this interfere in some way with the
connection? I should mention that earlier this topology was working fine.
And then one day storm just stopped processing tuples for this topology.
Please help me out here.
Thanks,
Palak