java - Zookeeper Network Ensemble does not start appropiately -
i've been working zookeeper lately fill requirement of reliablity in distributed applications. i'm working 3 computers , followed tutorial:
http://sanjivblogs.blogspot.ie/2011/04/deploying-zookeeper-ensemble.html
i did step step ensure did well, when start zookeepers the
./zkserver.sh start
i'm getting these exceptions computers:
2013-04-05 21:46:58,995 [myid:2] - warn [sendworker:1:quorumcnxmanager$sendworker@679] - interrupted while waiting message on queue java.lang.interruptedexception @ java.util.concurrent.locks.abstractqueuedsynchronizer$conditionobject.reportinterruptafterwait(abstractqueuedsynchronizer.java:1961) @ java.util.concurrent.locks.abstractqueuedsynchronizer$conditionobject.awaitnanos(abstractqueuedsynchronizer.java:2038) @ java.util.concurrent.arrayblockingqueue.poll(arrayblockingqueue.java:342) @ org.apache.zookeeper.server.quorum.quorumcnxmanager.pollsendqueue(quorumcnxmanager.java:831) @ org.apache.zookeeper.server.quorum.quorumcnxmanager.access$500(quorumcnxmanager.java:62) @ org.apache.zookeeper.server.quorum.quorumcnxmanager$sendworker.run(quorumcnxmanager.java:667) 2013-04-05 21:46:58,995 [myid:2] - warn [sendworker:1:quorumcnxmanager$sendworker@688] - send worker leaving thread 2013-04-05 21:47:58,363 [myid:2] - warn [recvworker:3:quorumcnxmanager$recvworker@762] - connection broken id 3, id = 2, error = java.io.eofexception @ java.io.datainputstream.readint(datainputstream.java:375) @ org.apache.zookeeper.server.quorum.quorumcnxmanager$recvworker.run(quorumcnxmanager.java:747)
but don't know doing wrong this. objective syncrhonize zookeepers in different machines available service. went zookeeper.apache.org web päge , same information on how configure , start zookeeper, same steps followed before.
if me please appretiate it. in advance.
i need follow strict steps achieve this, done it. if facing same issue, make zookeeper enssemble, please remember:
you need 3 zookeeper servers running (local or on network), minimum number achieve synchronization. in each server, needed create file called "myid" (inside zookeeper folder), content of each myid file must sequential number, instance, have 3 zookeeper servers (folders), have myid content 1, other content 2 , other content 3.
then in zoo.cfg necessary stablish parameters required:
ticktime=2000 #datadir=/var/lib/zookeeper datadir=/home/mtataje/var/zookeeper1 clientport=2184 initlimit=10 synclimit=20 server.1=192.168.3.41:2888:3888 server.2=192.168.3.41:2889:3889 server.3=192.168.3.41:2995:2999
the zoo.cfg varies each server another, in case because testing on local, needed change port , datadir.
after that, excutes the:
./zkserver.sh start
maybe exceptions appear, because @ least 2 zookeepers must synchronized, when start @ least 2 zookeepers, exceptions should gone.
best regards.
Comments
Post a Comment