Hi all
   I have a question: after installation of the zookeeper according to
the doc for zookeeper(
http://hadoop.apache.org/zookeeper/docs/current/zookeeperAdmin.html#sc_systemReq),
 abnormalities emerge as follows:
------------------------------------------------------
JMX enabled by default
Using
config: /home/baeeq/hadoop-0.20.2/zookeeper-3.2.2/bin/../conf/zoo.cfg
Starting zookeeper ...
STARTED
2010-05-08 13:37:28,273 - INFO  [main:quorumpeercon...@80] - Reading
configuration
from: /home/baeeq/hadoop-0.20.2/zookeeper-3.2.2/bin/../conf/zoo.cfg
2010-05-08 13:37:28,284 - INFO  [main:quorumpeercon...@232] - Defaulting
to majority quorums
2010-05-08 13:37:28,299 - INFO  [main:quorumpeerm...@118] - Starting
quorum peer
2010-05-08 13:37:28,331 - INFO  [Thread-1:quorumcnxmanager$liste...@409]
- My election bind port: 3888
2010-05-08 13:37:28,342 - INFO
[QuorumPeer:/0:0:0:0:0:0:0:0:2181:quorump...@514] - LOOKING
2010-05-08 13:37:28,345 - INFO
[QuorumPeer:/0:0:0:0:0:0:0:0:2181:fastleaderelect...@579] - New
election: -1
2010-05-08 13:37:28,351 - WARN  [WorkerSender
Thread:quorumcnxmana...@336] - Cannot open channel to 2 at election
address /192.168.1.3: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)
2010-05-08 13:37:28,352 - INFO
[QuorumPeer:/0:0:0:0:0:0:0:0:2181:fastleaderelect...@618] -
Notification: 1, -1, 1, 1, LOOKING, LOOKING, 1
2010-05-08 13:37:28,353 - INFO
[QuorumPeer:/0:0:0:0:0:0:0:0:2181:fastleaderelect...@642] - Adding vote
2010-05-08 13:37:28,557 - WARN
[QuorumPeer:/0:0:0:0:0:0:0:0:2181:quorumcnxmana...@336] - Cannot open
channel to 2 at election address /192.168.1.3: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:515)
2010-05-08 13:37:28,559 - INFO
[QuorumPeer:/0:0:0:0:0:0:0:0:2181:fastleaderelect...@612] - Notification
time out: 400
2010-05-08 13:37:28,961 - WARN
[QuorumPeer:/0:0:0:0:0:0:0:0:2181:quorumcnxmana...@336] - Cannot open
channel to 2 at election address /192.168.1.3: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).....
------------------------------------------------------
fileinfo for zoo.cfg is listed below:
        tickTime=2000
        initLimit=10
        syncLimit=5
        dataDir=/home/baeeq/hadoop-0.20.2/zookeeper-data
        clientPort=2181
        server.1=192.168.1.2:2888:3888
        server.2=192.168.1.3:2888:3888

PS: It works well on the single computer after deleting
"server.1=192.168.1.2:2888:3888 server.2=192.168.1.3:2888:3888"





                                          
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969

Reply via email to