我最近與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:[email protected]] - 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:[email protected]] - Send worker leaving thread
2013-04-05 21:47:58,363 [myid:2] - WARN [RecvWorker:3:[email protected]] - 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 WebPäge,查找關於如何配置和啓動我的動物園管理員的相同信息,但是我採用了與之前相同的步驟。
如果有人可以幫助我,我會真的appretiate它。提前致謝。