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
+
Frank Zheng 2012-10-08, 02:11
Copy link to this message
-
Re: Cannot Open Channel at Election Address
I find the problem.
The IP Address of my computer changed !

On Mon, Oct 8, 2012 at 10:11 AM, Frank Zheng <[EMAIL PROTECTED]>wrote:

> 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
Sincerely,
Zheng Yu
Mobile:  (852) 60670059
Email:    [EMAIL PROTECTED]
+
Flavio Junqueira 2012-10-06, 10:50
+
Frank Zheng 2012-10-08, 01:59
+
Yi Wang 2014-05-02, 05:14