Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Zookeeper, mail # user - Cannot Open Channel at Election Address


+
Frank Zheng 2012-10-05, 10:03
+
Patrick Hunt 2012-10-06, 14:25
Copy link to this message
-
Re: Cannot Open Channel at Election Address
Frank Zheng 2012-10-08, 02:11
I rechecked myid files. There was no problem.
And the error messages displayed after I had started all servers.

In one machine, the error messages are as follows.

2012-10-08 18:06:29,261 [myid:2] - WARN
[QuorumPeer[myid=2]/0:0:0:0:0:0:0:0:2182:QuorumCnxManager@368] - Cannot
open channel to 3 at election address testing.machine1/192.168.0.101:3902
java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
    at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
    at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
    at java.net.Socket.connect(Socket.java:546)
    at
org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:354)
    at
org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCnxManager.java:388)
    at
org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:765)
    at
org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:716)
2012-10-08 18:06:29,262 [myid:2] - INFO
[QuorumPeer[myid=2]/0:0:0:0:0:0:0:0:2182:QuorumCnxManager@190] - Have
smaller server identifier, so dropping the connection: (4, 2)
2012-10-08 18:06:29,262 [myid:2] - INFO
[QuorumPeer[myid=2]/0:0:0:0:0:0:0:0:2182:FastLeaderElection@774] -
Notification time out: 60000

In the other machine, the error messages are like this.

2012-10-08 10:08:37,076 [myid:5] - WARN
[WorkerSender[myid=5]:QuorumCnxManager@368] - Cannot open channel to 3 at
election address testing.machine1/192.168.0.101:3902
java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
    at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
    at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
    at java.net.Socket.connect(Socket.java:546)
    at
org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:354)
    at
org.apache.zookeeper.server.quorum.QuorumCnxManager.toSend(QuorumCnxManager.java:327)
    at
org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.process(FastLeaderElection.java:393)
    at
org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.run(FastLeaderElection.java:365)
    at java.lang.Thread.run(Thread.java:679)
2012-10-08 10:08:37,079 [myid:5] - INFO
[WorkerReceiver[myid=5]:FastLeaderElection@542] - Notification: 5
(n.leader), 0x0 (n.zxid), 0x1 (n.round), LOOKING (n.state), 4 (n.sid), 0x0
(n.peerEPoch), LOOKING (my state)
2012-10-08 10:08:37,079 [myid:5] - INFO
[WorkerReceiver[myid=5]:FastLeaderElection@542] - Notification: 5
(n.leader), 0x0 (n.zxid), 0x1 (n.round), LOOKING (n.state), 5 (n.sid), 0x0
(n.peerEPoch), LOOKING (my state)
These two kinds of error messages keep showing again and again.
When I tried to set up a client and connect on server, an error came up.

[root@testing zookeeper-3.4.4]# bin/zkCli.sh -server testing.machine2:2184
Connecting to testing.machine2:2184
2012-10-08 10:10:38,734 [myid:] - INFO  [main:Environment@100] - Client
environment:zookeeper.version=3.4.4-1386507, built on 09/17/2012 08:33 GMT
2012-10-08 10:10:38,737 [myid:] - INFO  [main:Environment@100] - Client
environment:host.name=testing.machine2
2012-10-08 10:10:38,737 [myid:] - INFO  [main:Environment@100] - Client
environment:java.version=1.6.0_22
2012-10-08 10:10:38,737 [myid:] - INFO  [main:Environment@100] - Client
environment:java.vendor=Sun Microsystems Inc.
2012-10-08 10:10:38,738 [myid:] - INFO  [main:Environment@100] - Client
environment:java.home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
2012-10-08 10:10:38,738 [myid:] - INFO  [main:Environment@100] - Client
environment:java.class.path=/usr/zookeeper-3.4.4/bin/../build/classes:/usr/zookeeper-3.4.4/bin/../build/lib/*.jar:/usr/zookeeper-3.4.4/bin/../lib/slf4j-log4j12-1.6.1.jar:/usr/zookeeper-3.4.4/bin/../lib/slf4j-api-1.6.1.jar:/usr/zookeeper-3.4.4/bin/../lib/netty-3.2.2.Final.jar:/usr/zookeeper-3.4.4/bin/../lib/log4j-1.2.15.jar:/usr/zookeeper-3.4.4/bin/../lib/jline-0.9.94.jar:/usr/zookeeper-3.4.4/bin/../zookeeper-3.4.4.jar:/usr/zookeeper-3.4.4/bin/../src/java/lib/*.jar:/usr/zookeeper-3.4.4/bin/../conf:
2012-10-08 10:10:38,738 [myid:] - INFO  [main:Environment@100] - Client
environment:java.library.path=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
2012-10-08 10:10:38,738 [myid:] - INFO  [main:Environment@100] - Client
environment:java.io.tmpdir=/tmp
2012-10-08 10:10:38,739 [myid:] - INFO  [main:Environment@100] - Client
environment:java.compiler=<NA>
2012-10-08 10:10:38,739 [myid:] - INFO  [main:Environment@100] - Client
environment:os.name=Linux
2012-10-08 10:10:38,739 [myid:] - INFO  [main:Environment@100] - Client
environment:os.arch=amd64
2012-10-08 10:10:38,739 [myid:] - INFO  [main:Environment@100] - Client
environment:os.version=2.6.32-220.el6.x86_64
2012-10-08 10:10:38,740 [myid:] - INFO  [main:Environment@100] - Client
environment:user.name=root
2012-10-08 10:10:38,740 [myid:] - INFO  [main:Environment@100] - Client
environment:user.home=/root
2012-10-08 10:10:38,740 [myid:] - INFO  [main:Environment@100] - Client
environment:user.dir=/usr/zookeeper-3.4.4
2012-10-08 10:10:38,741 [myid:] - INFO  [main:ZooKeeper@433] - Initiating
client connection, connectString=testing.machine2:2184 sessionTimeout=30000
watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@657d5d2a
Welcome to ZooKeeper!
2012-
+
Frank Zheng 2012-10-08, 03:03
+
Flavio Junqueira 2012-10-06, 10:50
+
Frank Zheng 2012-10-08, 01:59
+
Yi Wang 2014-05-02, 05:14