Brian Il Lun 8 Feb 2021, 03:50 Brian Rickabaugh <[email protected]> ha scritto:
> Hello, everyone. > > I am working on configuring a new set of 3 ZooKeeper servers and I am > finding that none of the servers are listening on port 2888. There are no > relevant messages or exceptions logged during start up. > > The servers are listening on port 3888. The servers do appear to start up > properly and connect to each other on port 3888. > > After a few seconds, I start seeing exceptions logged along the lines of > the following: > > 2021-02-07 21:30:16,583 [myid:1] - WARN > > [QuorumPeer[myid=1](plain=[0:0:0:0:0:0:0:0]:2181)(secure=disabled):Follower@129 > ] > - Exception when following the leader > java.io.IOException: Failed connect to box02/10.1.1.202:2888 > at > > org.apache.zookeeper.server.quorum.Learner.connectToLeader(Learner.java:298) > at > org.apache.zookeeper.server.quorum.Follower.followLeader(Follower.java:87) > at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:1458) > > I am using ZooKeeper 3.6.2, Fedora 33 and the following Java runtime. > Are you using 3 virtual machines/servers or are you running everything in the same machine? Did you write the 'id' file in the data directory for each server? Enrico > openjdk version "15.0.1" 2020-10-20 > OpenJDK Runtime Environment 20.9 (build 15.0.1+9) > OpenJDK 64-Bit Server VM 20.9 (build 15.0.1+9, mixed mode, sharing) > > My ZooKeeper conf file is as follows: > > ----- > tickTime=2000 > dataDir=/opt/zookeeper-data/ > clientPort=2181 > initLimit=5 > syncLimit=2 > server.1=box00:2888:3888 > server.2=box01:2888:3888 > server.3=box02:2888:3888 > ----- > > Any thoughts or ideas? > > Thanks in advance, Brian >
