zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Rimba <paul.ri...@gmail.com>
Subject SocketException Error! HELP
Date Thu, 30 Jun 2011 06:36:35 GMT
Hey there,
i am new to zookeeper. i first setup the configuration file:
zoo.cfg
tickTime=2000
clientPort=2181
dataDir=/home/user/dataDir

<hr>

Then i tried echo ruok|nc localhost 2181

this shows up:
2011-06-30 11:25:44,386 [myid:] - INFO  [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] - Accepted socket connection
from /0:0:0:0:0:0:0:1:39676
2011-06-30 11:25:44,394 [myid:] - INFO  [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn@794] - Processing ruok command from
/0:0:0:0:0:0:0:1:39676
2011-06-30 11:25:44,397 [myid:] - INFO  [Thread-1:NIOServerCnxn@970] -
Closed socket connection for client /0:0:0:0:0:0:0:1:39676 (no session
established for client)

but there is no "imok" that i am expecting.

i check the log file and there is an error:
2011-06-30 11:25:44,386 [myid:] - INFO  [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] - Accepted socket connection
from /0:0:0:0:0:0:0:1:39676
2011-06-30 11:25:44,394 [myid:] - INFO  [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn@794] - Processing ruok command from
/0:0:0:0:0:0:0:1:39676
2011-06-30 11:25:44,397 [myid:] - INFO  [Thread-1:NIOServerCnxn@970] -
Closed socket connection for client /0:0:0:0:0:0:0:1:39676 (no session
established for client)
2011-06-30 11:25:44,399 [myid:] - DEBUG [Thread-1:NIOServerCnxn@986] -
ignoring exception during output shutdown
java.net.SocketException: Transport endpoint is not connected
        at sun.nio.ch.SocketChannelImpl.shutdown(Native Method)
        at
sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:644)
        at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:368)
        at
org.apache.zookeeper.server.NIOServerCnxn.closeSock(NIOServerCnxn.java:982)
        at
org.apache.zookeeper.server.NIOServerCnxn.close(NIOServerCnxn.java:947)
        at
org.apache.zookeeper.server.NIOServerCnxn.cleanupWriterSocket(NIOServerCnxn.java:428)
        at
org.apache.zookeeper.server.NIOServerCnxn.access$000(NIOServerCnxn.java:60)
        at
org.apache.zookeeper.server.NIOServerCnxn$CommandThread.run(NIOServerCnxn.java:497)
2011-06-30 11:25:44,400 [myid:] - DEBUG [Thread-1:NIOServerCnxn@994] -
ignoring exception during input shutdown
java.net.SocketException: Transport endpoint is not connected
        at sun.nio.ch.SocketChannelImpl.shutdown(Native Method)
        at
sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:633)
        at sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:360)
        at
org.apache.zookeeper.server.NIOServerCnxn.closeSock(NIOServerCnxn.java:990)
        at
org.apache.zookeeper.server.NIOServerCnxn.close(NIOServerCnxn.java:947)
        at
org.apache.zookeeper.server.NIOServerCnxn.cleanupWriterSocket(NIOServerCnxn.java:428)
        at
org.apache.zookeeper.server.NIOServerCnxn.access$000(NIOServerCnxn.java:60)
        at
org.apache.zookeeper.server.NIOServerCnxn$CommandThread.run(NIOServerCnxn.java:497)

i am currently running zookeeper 3.4.. the same thing happened to me on
another machine running zookeeper 3.3

my config:
tickTime=2000
initLimit=10
syncLimit=5
dataDir=/home/polie/zookeeper-dataDir
clientPort=2181

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message