Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Zookeeper >> mail # user >> Zookeeper start up error


Copy link to this message
-
Zookeeper start up error
Hello Friend,
    I am new in zookeeper. I am trying to install multiple zookeeper server
(cluster configuration on my own machin)
for that i have taken latest zookeeper release. (zookeeper-3.4.5.tar.gz) I
have extract this file in 3 multiple folders there as :
1) zookeeper-3.4.5
2) zookeeper-3.4.5.1
3) zookeeper-3.4.5.2
respectively and after that i have created data director for zookeeper using
(mkdir foldername) command. they are as
1) zookeeperdata1
2) zookeeperdata2
3) zookeeperdata3
respectively after that i have created myid file in each data directory with
id (1,2,3) respectively
my configuration files are

server 1 : zoo.cfg
tickTime=2000
initLimit=5
syncLimit=2
dataDir=/home/hduser/zookeeperdata1
clientPort=2181
server.1=localhost:2888:3888
server.2=localhost:2889:3889
server.3=localhost:2890:3890

server 2 : zoo.cfg
tickTime=2000
initLimit=5
syncLimit=2
dataDir=/home/hduser/zookeeperdata2
clientPort=2181
server.1=localhost:2888:3888
server.2=localhost:2889:3889
server.3=localhost:2890:3890

server 3 : zoo.cfg
tickTime=2000
initLimit=5
syncLimit=2
dataDir=/home/hduser/zookeeperdata3
clientPort=2181
server.1=localhost:2888:3888
server.2=localhost:2889:3889
server.3=localhost:2890:3890

After that i an going to zookeeper-3.4.5 folder and execute following
command
hduser@sigehere-lp:~/zookeeper-3.4.5$ java -cp
zookeeper-3.4.5.jar:lib/slf4j-api-1.6.1.jar:lib/slf4j-log4j12-1.6.1.jar:lib/log4j-1.2.15.jar:conf
org.apache.zookeeper.server.quorum.QuorumPeerMain conf/zoo.cfg
I got follwoing error where i had done mistake can any know about this
error:

2013-02-02 12:20:12,485 [myid:] - INFO  [main:QuorumPeerConfig@101] -
Reading configuration from: conf/zoo.cfg
2013-02-02 12:20:12,491 [myid:] - INFO  [main:QuorumPeerConfig@334] -
Defaulting to majority quorums
2013-02-02 12:20:12,494 [myid:1] - INFO  [main:DatadirCleanupManager@78] -
autopurge.snapRetainCount set to 3
2013-02-02 12:20:12,494 [myid:1] - INFO  [main:DatadirCleanupManager@79] -
autopurge.purgeInterval set to 0
2013-02-02 12:20:12,494 [myid:1] - INFO  [main:DatadirCleanupManager@101] -
Purge task is not scheduled.
2013-02-02 12:20:12,531 [myid:1] - INFO  [main:QuorumPeerMain@127] -
Starting quorum peer
2013-02-02 12:20:12,543 [myid:1] - INFO  [main:NIOServerCnxnFactory@94] -
binding to port 0.0.0.0/0.0.0.0:2181
2013-02-02 12:20:12,556 [myid:1] - INFO  [main:QuorumPeer@913] - tickTime
set to 2000
2013-02-02 12:20:12,556 [myid:1] - INFO  [main:QuorumPeer@933] -
minSessionTimeout set to -1
2013-02-02 12:20:12,556 [myid:1] - INFO  [main:QuorumPeer@944] -
maxSessionTimeout set to -1
2013-02-02 12:20:12,556 [myid:1] - INFO  [main:QuorumPeer@959] - initLimit
set to 5
2013-02-02 12:20:12,568 [myid:1] - INFO  [main:FileSnap@83] - Reading
snapshot /home/hduser/zookeeperdata1/version-2/snapshot.300000006
2013-02-02 12:20:12,624 [myid:1] - INFO
[Thread-1:QuorumCnxManager$Listener@486] - My election bind port:
0.0.0.0/0.0.0.0:3888
2013-02-02 12:20:12,635 [myid:1] - INFO
[QuorumPeer[myid=1]/0.0.0.0:2181:QuorumPeer@670] - LOOKING
2013-02-02 12:20:12,638 [myid:1] - INFO
[QuorumPeer[myid=1]/0.0.0.0:2181:FastLeaderElection@740] - New election. My
id =  1, proposed zxid=0x4000001cf
2013-02-02 12:20:12,641 [myid:1] - INFO
[WorkerReceiver[myid=1]:FastLeaderElection@542] - Notification: 1
(n.leader), 0x4000001cf (n.zxid), 0x1 (n.round), LOOKING (n.state), 1
(n.sid), 0x4 (n.peerEPoch), LOOKING (my state)
2013-02-02 12:20:12,645 [myid:1] - WARN
[WorkerSender[myid=1]:QuorumCnxManager@368] - Cannot open channel to 2 at
election address localhost/127.0.0.1:3889
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)
2013-02-02 12:20:12,648 [myid:1] - WARN
[WorkerSender[myid=1]:QuorumCnxManager@368] - Cannot open channel to 3 at
election address localhost/127.0.0.1:3890
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)
2013-02-02 12:20:12,843 [myid:1] - WARN
[QuorumPeer[myid=1]/0.0.0.0:2181:QuorumCnxManager@368] - Cannot open channel
to 2 at election address localhost/127.0.0.1:3889
java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
    
+
Patrick Hunt 2013-02-03, 07:03
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB