zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sushant Vengurlekar <svengurle...@curvolabs.com>
Subject Cannot open channel to 2 at election address
Date Fri, 06 Jul 2018 17:00:21 GMT
I am trying to setup a 3 zookeeper ensemble on ECS using docker

This is my zoo.cfg on one of the containers

clientPort=2181

dataDir=/opt/persist/datastore

dataLogDir=/opt/persist/data

tickTime=120000

initLimit=15

syncLimit=2

maxClientCnxns=60

server.1=zk1.curvo:2888:3888

server.2=zk2.curvo:2888:3888

server.3=zk3.curvo:2888:3888

I get the following errors

2018-07-06 16:51:15,477 [myid:1] - WARN  [QuorumPeer[myid=1]/0.0.0.0:2181
:QuorumCnxManager@584] - Cannot open channel to 2 at election address
zk2.curvo/172.16.3.133:3888

java.net.ConnectException: Connection refused (Connection refused)

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:558)

at
org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCnxManager.java:610)

at
org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:838)

at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:957)

2018-07-06 16:51:15,480 [myid:1] - INFO  [QuorumPeer[myid=1]/0.0.0.0:2181
:QuorumPeer$QuorumServer@184] - Resolved hostname: zk2.curvo to address:
zk2.curvo/172.16.3.133


I have added the required ports on the host as well as in the security
groups for access. Any one has any insight into this.


Thank you

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message