zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arun Bitla <arun.bi...@gmail.com>
Subject Cannot open channel to 2 at election address 26245T510.Insight. com/172.16.205.80:3888 java.net.SocketTimeoutException: connect timed out
Date Wed, 25 Feb 2015 20:15:14 GMT
C:\zookeeper\bin>zkServer
 
C:\zookeeper\bin>java "-Dzookeeper.log.dir=C:\zookeeper\bin\.." "-Dzookeeper.root.logger=INFO,CONSOLE"
-cp "C:\zookeeper\bin\..\build\classes;C:\zooke
eper\bin\..\build\lib\*;C:\zookeeper\bin\..\*;C:\zookeeper\bin\..\lib\*;C:\zookeeper\bin\..\conf"
org.apache.zookeeper.server.quorum.QuorumPeerMain "C
:\zookeeper\bin\..\conf\zoo.cfg"
2015-02-25 12:35:07,241 [myid:] - INFO  [main:QuorumPeerConfig@103] - Reading configuration
from: C:\zookeeper\bin\..\conf\zoo.cfg
2015-02-25 12:35:07,257 [myid:] - WARN  [main:QuorumPeerConfig@293] - No server failure will
be tolerated. You need at least 3 servers.
2015-02-25 12:35:07,257 [myid:] - INFO  [main:QuorumPeerConfig@340] - Defaulting to majority
quorums
2015-02-25 12:35:07,257 [myid:1] - INFO  [main:DatadirCleanupManager@78] - autopurge.snapRetainCount
set to 3
2015-02-25 12:35:07,257 [myid:1] - INFO  [main:DatadirCleanupManager@79] - autopurge.purgeInterval
set to 0
2015-02-25 12:35:07,272 [myid:1] - INFO  [main:DatadirCleanupManager@101] - Purge task is
not scheduled.
2015-02-25 12:35:07,319 [myid:1] - INFO  [main:QuorumPeerMain@127] - Starting quorum peer
2015-02-25 12:35:07,335 [myid:1] - INFO  [main:NIOServerCnxnFactory@94] - binding to port
0.0.0.0/0.0.0.0:2181
2015-02-25 12:35:07,366 [myid:1] - INFO  [main:QuorumPeer@959] - tickTime set to 2000
2015-02-25 12:35:07,366 [myid:1] - INFO  [main:QuorumPeer@979] - minSessionTimeout set to
-1
2015-02-25 12:35:07,366 [myid:1] - INFO  [main:QuorumPeer@990] - maxSessionTimeout set to
-1
2015-02-25 12:35:07,366 [myid:1] - INFO  [main:QuorumPeer@1005] - initLimit set to 100
2015-02-25 12:35:07,382 [myid:1] - INFO  [Thread-1:QuorumCnxManager$Listener@504] - My election
bind port: USTPENB34078.Insight.com/172.16.205.121:388 <http://ustpenb34078.insight.com/172.16.205.121:388>
8
2015-02-25 12:35:07,397 [myid:1] - INFO  [QuorumPeer[myid=1]/0.0.0.0:2181:QuorumPeer@714]
- LOOKING
2015-02-25 12:35:07,397 [myid:1] - INFO  [QuorumPeer[myid=1]/0.0.0.0:2181:FastLeaderElection@815]
- New election. My id =  1, proposed zxid=0x0
2015-02-25 12:35:07,413 [myid:1] - INFO  [WorkerReceiver[myid=1]:FastLeaderElection@597] -
Notification: 1 (message format version), 1 (n.leader), 0x0
(n.zxid), 0x1 (n.round), LOOKING (n.state), 1 (n.sid), 0x0 (n.peerEpoch) LOOKING (my state)
2015-02-25 12:35:12,422 [myid:1] - WARN  [WorkerSender[myid=1]:QuorumCnxManager@382] - Cannot
open channel to 2 at election address 26245T510.Insight.
com/172.16.205.80:3888
java.net.SocketTimeoutException: connect timed out
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:529)
        at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:368)
        at org.apache.zookeeper.server.quorum.QuorumCnxManager.toSend(QuorumCnxManager.java:341)
        at org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.process(FastLeaderElection.java:449)
        at org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.run(FastLeaderElection.java:430)
        at java.lang.Thread.run(Thread.java:662)
I just setup ZooKeeper with 2 nodes and I keep getting this error on my first node - 

"Cannot open channel to 2 at election address 26245T510.Insight. com/172.16.205.80:3888 java.net.SocketTimeoutException:
connect timed out"

Any idea please?

2015-02-25 12:35:17,479 [myid:1] - WARN  [QuorumPeer[myid=1]/0.0.0.0:2181:QuorumCnxManager@382]
- Cannot open channel to 2 at election address 26245T5
10.Insight.com/172.16.205.80:3888 <http://10.insight.com/172.16.205.80:3888>
java.net.SocketTimeoutException: connect timed out
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:529)
        at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:368)
        at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCnxManager.java:402)
        at org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:840)
        at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:762)
2015-02-25 12:35:17,510 [myid:1] - INFO  [QuorumPeer[myid=1]/0.0.0.0:2181:FastLeaderElection@849]
- Notification time out: 400
2015-02-25 12:35:22,931 [myid:1] - WARN  [QuorumPeer[myid=1]/0.0.0.0:2181:QuorumCnxManager@382]
- Cannot open channel to 2 at election address 26245T5
10.Insight.com/172.16.205.80:3888 <http://10.insight.com/172.16.205.80:3888>
java.net.SocketTimeoutException: connect timed out
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:529)
        at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:368)
        at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCnxManager.java:402)
        at org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:840)
        at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:762)
2015-02-25 12:35:22,962 [myid:1] - INFO  [QuorumPeer[myid=1]/0.0.0.0:2181:FastLeaderElection@849]
- Notification time out: 800
Terminate batch job (Y/N)? y
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message