java - Zookeeper error: Cannot open channel to X at election address -


i have installed zookeeper in 3 different aws servers. following configuration in servers

ticktime=2000 initlimit=10 synclimit=5 datadir=/var/zookeeper clientport=2181 server.1=x.x.x.x:2888:3888 server.2=x.x.x.x:2888:3888 server.3=x.x.x.x:2888:3888 

all 3 instance have myid file @ var/zookeeper appropriate id in it. 3 servers have ports open aws console. when run zookeeper server, following error in instances.

2015-06-19 12:09:22,989 [myid:1] - warn  [quorumpeer[myid=1]/0:0:0:0:0:0:0:0:2181:quorumcnxmanager@382]    - cannot open channel 2 @ election address /x.x.x.x:3888 java.net.connectexception: connection refused   @ java.net.plainsocketimpl.socketconnect(native method)   @ java.net.abstractplainsocketimpl.doconnect(abstractplainsocketimpl.java:339)   @ java.net.abstractplainsocketimpl.connecttoaddress(abstractplainsocketimpl.java:200)   @ java.net.abstractplainsocketimpl.connect(abstractplainsocketimpl.java:182)   @ java.net.sockssocketimpl.connect(sockssocketimpl.java:392)   @ java.net.socket.connect(socket.java:579)   @ org.apache.zookeeper.server.quorum.quorumcnxmanager.connectone(quorumcnxmanager.java:368)   @ org.apache.zookeeper.server.quorum.quorumcnxmanager.connectall(quorumcnxmanager.java:402)   @ org.apache.zookeeper.server.quorum.fastleaderelection.lookforleader(fastleaderelection.java:840)   @ org.apache.zookeeper.server.quorum.quorumpeer.run(quorumpeer.java:762) 2015-06-19 12:09:23,170 [myid:1] - warn  [quorumpeer[myid=1]/0:0:0:0:0:0:0:0:2181:quorumcnxmanager@382]    - cannot open channel 3 @ election address /x.x.x.x:3888 java.net.connectexception: connection refused   @ java.net.plainsocketimpl.socketconnect(native method)   @ java.net.abstractplainsocketimpl.doconnect(abstractplainsocketimpl.java:339)   @ java.net.abstractplainsocketimpl.connecttoaddress(abstractplainsocketimpl.java:200)   @ java.net.abstractplainsocketimpl.connect(abstractplainsocketimpl.java:182)   @ java.net.sockssocketimpl.connect(sockssocketimpl.java:392)   @ java.net.socket.connect(socket.java:579)   @ org.apache.zookeeper.server.quorum.quorumcnxmanager.connectone(quorumcnxmanager.java:368)   @ org.apache.zookeeper.server.quorum.quorumcnxmanager.connectall(quorumcnxmanager.java:402)   @ org.apache.zookeeper.server.quorum.fastleaderelection.lookforleader(fastleaderelection.java:840)   @ org.apache.zookeeper.server.quorum.quorumpeer.run(quorumpeer.java:762) 2015-06-19 12:09:23,170 [myid:1] - info  [quorumpeer[myid=1]/0:0:0:0:0:0:0:0:2181:fastleaderelection@849] - notification time out: 25600 

how have defined ip of local server in each node? if have given public ip, listener have failed connect port. must specify 0.0.0.0 current node

server.1=0.0.0.0:2888:3888 server.2=192.168.10.10:2888:3888 server.3=192.168.2.1:2888:3888 

this change must performed @ other nodes too.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -