我正在尝试在AWS上设置zookeeper群集,并且在运行zookeeper时遇到以下错误:
[2017-03-22 11:32:25,038] INFO Notification time out: 1600 (org.apache.zookeeper.server.quorum.FastLeaderElection)
[2017-03-22 11:32:31,644] WARN Cannot open channel to 2 at election address /<IP2>:3888 (org.apache.zookeeper.server.quorum.QuorumCnxManager)
java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:368)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCnxManager.java:402)
at org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:840)
at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:762)
知道怎么解决吗??
我的zookeeper.properties是这样的:
dataDir=/tmp/zookeeper
# the port at which the clients will connect
#clientPort=2181
clientPort=2080
# disable the per-ip limit on the number of connections since this is a non-production config
maxClientCnxns=0
server.1=0.0.0.0:2888:3888
server.2=<IP2>:2888:3888
#add here more servers if you want
initLimit=5
syncLimit=2
tickTime=2000
我的猜测:我认为存在一些网络问题。但我不知道该怎么办?