我最近一直在与 zookeeper 合作,以满足分布式应用程序的可靠性要求。我正在使用三台计算机,并按照本教程进行操作:
http://sanjivblogs.blogspot.ie/2011/04/deploying-zookeeper-ensemble.html
我一步一步地确保我做得很好,但现在当我开始我的动物园管理员时
./zkServer.sh start
我的所有计算机都出现以下异常:
2013-04-05 21:46:58,995 [myid:2] - WARN [SendWorker:1:QuorumCnxManager$SendWorker@679] - Interrupted while waiting for message on queue
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1961)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2038)
at java.util.concurrent.ArrayBlockingQueue.poll(ArrayBlockingQueue.java:342)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.pollSendQueue(QuorumCnxManager.java:831)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.access$500(QuorumCnxManager.java:62)
at 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 for id 3, my id = 2, error =
java.io.EOFException
at java.io.DataInputStream.readInt(DataInputStream.java:375)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$RecvWorker.run(QuorumCnxManager.java:747)
但我不知道我做错了什么来得到这个。我的目标是在不同的机器上同步我的动物园管理员,以便始终获得可用的服务。我访问了 zookeeper.apache.org 网页并查找有关如何配置和启动我的 zookeeper 的相同信息,但与我之前遵循的步骤相同。
如果有人可以帮助我,我真的很感激。提前致谢。