hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Le Zhou <lezhouy...@gmail.com>
Subject Start problem of "Running Replicated ZooKeeper"
Date Wed, 23 Sep 2009 09:41:57 GMT
Hi,
I'm trying to install HBase 0.20.0 in fully distributed mode on my cluster.
As HBase depends on Zookeeper, I have to know first how to make Zookeeper
work.
I download the release 3.2.1 and install it on each machine in my cluster.

Zookeeper in standalone mode works well on each machine in my cluster. I
follow the "Zookeeper Getting Started Guide" and get expected output. Then I
come to the "Running replicated zookeeper"

On each machine in my cluster(debian-0, debian-1, debian-5), I append the
following lines to zoo.cfg, and create in dataDir a "myid" which contains
the server id(1 for debian-0, 2 for debian-1, 3 for debian-5).

server.1=debian-0:2888:3888
server.2=debian-1:2888:3888
server.3=debian-5:2888:3888

then I start zookeeper server by "running bin/zkServer.sh start", and I got
the following output:

cloud@debian-0:~/zookeeper$ bin/zkServer.sh start
JMX enabled by default
Using config: /home/cloud/zookeeper-3.2.1/bin/../conf/zoo.cfg
Starting zookeeper ...
STARTED
cloud@debian-0:~/zookeeper$ 2009-09-23 15:30:27,976 - INFO
 [main:QuorumPeerConfig@80] - Reading configuration from:
/home/cloud/zookeeper-3.2.1/bin/../conf/zoo.cfg
2009-09-23 15:30:27,981 - INFO  [main:QuorumPeerConfig@232] - Defaulting to
majority quorums
2009-09-23 15:30:28,009 - INFO  [main:QuorumPeerMain@118] - Starting quorum
peer
2009-09-23 15:30:28,034 - INFO  [Thread-1:QuorumCnxManager$Listener@409] -
My election bind port: 3888
2009-09-23 15:30:28,045 - INFO
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:QuorumPeer@487] - LOOKING
2009-09-23 15:30:28,070 - INFO
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:FastLeaderElection@579] - New election:
-1
2009-09-23 15:30:28,075 - INFO
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:FastLeaderElection@618] - Notification:
1, -1, 1, 1, LOOKING, LOOKING, 1
2009-09-23 15:30:28,075 - WARN  [WorkerSender Thread:QuorumCnxManager@336] -
Cannot open channel to 2 at election address debian-1/172.20.53.86:3888
java.net.ConnectException: Connection refused
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
at
org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:323)
at
org.apache.zookeeper.server.quorum.QuorumCnxManager.toSend(QuorumCnxManager.java:302)
at
org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.process(FastLeaderElection.java:323)
at
org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.run(FastLeaderElection.java:296)
at java.lang.Thread.run(Thread.java:619)
2009-09-23 15:30:28,085 - INFO
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:FastLeaderElection@642] - Adding vote
2009-09-23 15:30:28,099 - WARN  [WorkerSender Thread:QuorumCnxManager@336] -
Cannot open channel to 3 at election address debian-5/172.20.14.194:3888
java.net.ConnectException: Connection refused
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
at
org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:323)
at
org.apache.zookeeper.server.quorum.QuorumCnxManager.toSend(QuorumCnxManager.java:302)
at
org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.process(FastLeaderElection.java:323)
at
org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.run(FastLeaderElection.java:296)
at java.lang.Thread.run(Thread.java:619)
2009-09-23 15:30:28,288 - WARN
 [QuorumPeer:/0:0:0:0:0:0:0:0:2181:QuorumCnxManager@336] - Cannot open
channel to 2 at election address debian-1/172.20.53.86:3888
java.net.ConnectException: Connection refused
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
at
org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:323)
at
org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCnxManager.java:356)
at
org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:603)
at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:488)

Terminal keeps on outputing the WARN info until I stop the zookeeper Server.

I googled "zookeeper cannot open channel to at address" and searched in
mailing list archives, but got nothing helpful.

I need your help, thanks and best regards!

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