Hi, I got this error some days ago. Can you try keeping only one client port configuration? Like, set secureClientPort in zoo.cfg and remove the clientPort config from zoo.cfg and zoo.cfg.dynamic. Keeping at multiple places will give you the port binding error.
Regards, Aishwarya Soni On Wed, May 6, 2020 at 3:24 PM blb.dev <bla.ibm....@gmail.com> wrote: > It looks like others are seeing the same issue as me in recent comments on > this item: https://issues.apache.org/jira/browse/ZOOKEEPER-2125 > > I tried following the item and setting SERVER_JVMFLAGS and CLIENT_JVMFLAGS > as well. Still get the same errors when trying to start ZK on 2181 or 2281: > > *# bin/zkCli.sh -server localhost:2281* > /usr/bin/java > Connecting to localhost:2281 > 2020-05-06 22:20:14,977 [myid:] - INFO [main:Environment@98] - Client > > environment:zookeeper.version=3.6.1--104dcb3e3fb464b30c5186d229e00af9f332524b, > built on 04/21/2020 15:01 GMT > 2020-05-06 22:20:14,983 [myid:] - INFO [main:Environment@98] - Client > environment:host.name=zoo1 > 2020-05-06 22:20:14,983 [myid:] - INFO [main:Environment@98] - Client > environment:java.version=1.8.0_252 > 2020-05-06 22:20:14,987 [myid:] - INFO [main:Environment@98] - Client > environment:java.vendor=Oracle Corporation > 2020-05-06 22:20:14,987 [myid:] - INFO [main:Environment@98] - Client > > environment:java.home=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el7_8.x86_64/jre > 2020-05-06 22:20:14,987 [myid:] - INFO [main:Environment@98] - Client > > environment:java.class.path=/apache-zookeeper-3.6.1-bin/bin/../zookeeper-server/target/classes:/apache-zookeeper-3.6.1-bin/bin/../build/classes:/apache-zookeeper-3.6.1-bin/bin/../zookeeper-server/target/lib/*.jar:/apache-zookeeper-3.6.1-bin/bin/../build/lib/*.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/zookeeper-prometheus-metrics-3.6.1.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/zookeeper-jute-3.6.1.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/zookeeper-3.6.1.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/snappy-java-1.1.7.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/slf4j-log4j12-1.7.25.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/slf4j-api-1.7.25.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/simpleclient_servlet-0.6.0.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/simpleclient_hotspot-0.6.0.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/simpleclient_common-0.6.0.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/simpleclient-0.6.0.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/netty-transport-native-unix-common-4.1.48.Final.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/netty-transport-native-epoll-4.1.48.Final.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/netty-transport-4.1.48.Final.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/netty-resolver-4.1.48.Final.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/netty-handler-4.1.48.Final.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/netty-common-4.1.48.Final.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/netty-codec-4.1.48.Final.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/netty-buffer-4.1.48.Final.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/metrics-core-3.2.5.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/log4j-1.2.17.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/json-simple-1.1.1.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/jline-2.11.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/jetty-util-9.4.24.v20191120.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/jetty-servlet-9.4.24.v20191120.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/jetty-server-9.4.24.v20191120.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/jetty-security-9.4.24.v20191120.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/jetty-io-9.4.24.v20191120.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/jetty-http-9.4.24.v20191120.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/javax.servlet-api-3.1.0.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/jackson-databind-2.10.3.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/jackson-core-2.10.3.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/jackson-annotations-2.10.3.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/commons-lang-2.6.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/commons-cli-1.2.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/audience-annotations-0.5.0.jar:/apache-zookeeper-3.6.1-bin/bin/../zookeeper-3.6.1.jar:/apache-zookeeper-3.6.1-bin/bin/../zookeeper-server/src/main/resources/lib/*.jar:/conf: > 2020-05-06 22:20:14,987 [myid:] - INFO [main:Environment@98] - Client > > environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib > 2020-05-06 22:20:14,987 [myid:] - INFO [main:Environment@98] - Client > environment:java.io.tmpdir=/tmp > 2020-05-06 22:20:14,988 [myid:] - INFO [main:Environment@98] - Client > environment:java.compiler=<NA> > 2020-05-06 22:20:14,988 [myid:] - INFO [main:Environment@98] - Client > environment:os.name=Linux > 2020-05-06 22:20:14,988 [myid:] - INFO [main:Environment@98] - Client > environment:os.arch=amd64 > 2020-05-06 22:20:14,988 [myid:] - INFO [main:Environment@98] - Client > environment:os.version=3.10.0-327.28.3.el7.x86_64 > 2020-05-06 22:20:14,988 [myid:] - INFO [main:Environment@98] - Client > environment:user.name=root > 2020-05-06 22:20:14,988 [myid:] - INFO [main:Environment@98] - Client > environment:user.home=/root > 2020-05-06 22:20:14,988 [myid:] - INFO [main:Environment@98] - Client > environment:user.dir=/apache-zookeeper-3.6.1-bin > 2020-05-06 22:20:14,989 [myid:] - INFO [main:Environment@98] - Client > environment:os.memory.free=51MB > 2020-05-06 22:20:14,992 [myid:] - INFO [main:Environment@98] - Client > environment:os.memory.max=228MB > 2020-05-06 22:20:14,993 [myid:] - INFO [main:Environment@98] - Client > environment:os.memory.total=57MB > 2020-05-06 22:20:15,001 [myid:] - INFO [main:ZooKeeper@1005] - Initiating > client connection, connectString=localhost:2281 sessionTimeout=30000 > watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@5e265ba4 > 2020-05-06 22:20:15,008 [myid:] - INFO [main:X509Util@77] - Setting -D > jdk.tls.rejectClientInitiatedRenegotiation=true to disable client-initiated > TLS renegotiation > 2020-05-06 22:20:15,020 [myid:] - INFO [main:ClientCnxnSocket@239] - > jute.maxbuffer value is 1048575 Bytes > 2020-05-06 22:20:15,033 [myid:] - INFO [main:ClientCnxn@1703] - > zookeeper.request.timeout value is 0. feature enabled=false > Welcome to ZooKeeper! > 2020-05-06 22:20:15,057 [myid:localhost:2281] - INFO > [main-SendThread(localhost:2281):ClientCnxn$SendThread@1154] - Opening > socket connection to server localhost/127.0.0.1:2281. > 2020-05-06 22:20:15,057 [myid:localhost:2281] - INFO > [main-SendThread(localhost:2281):ClientCnxn$SendThread@1156] - SASL config > status: Will not attempt to authenticate using SASL (unknown error) > JLine support is enabled > 2020-05-06 22:20:15,310 [myid:localhost:2281] - INFO > [main-SendThread(localhost:2281):ClientCnxn$SendThread@986] - Socket > connection established, initiating session, client: /127.0.0.1:60688, > server: localhost/127.0.0.1:2281 > 2020-05-06 22:20:15,337 [myid:localhost:2281] - WARN > [main-SendThread(localhost:2281):ClientCnxn$SendThread@1272] - Session 0x0 > for sever localhost/127.0.0.1:2281, Closing socket connection. Attempting > reconnect except it is a SessionExpiredException. > EndOfStreamException: Unable to read additional data from server sessionid > 0x0, likely server has closed socket > at > org.apache.zookeeper.ClientCnxnSocketNIO.doIO(ClientCnxnSocketNIO.java:75) > at > > org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:348) > at > org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1262) > [zk: localhost:2281(CONNECTING) 0] 2020-05-06 22:20:17,130 > [myid:localhost:2281] - INFO > [main-SendThread(localhost:2281):ClientCnxn$SendThread@1154] - Opening > socket connection to server localhost/127.0.0.1:2281. > 2020-05-06 22:20:17,130 [myid:localhost:2281] - INFO > [main-SendThread(localhost:2281):ClientCnxn$SendThread@1156] - SASL config > status: Will not attempt to authenticate using SASL (unknown error) > 2020-05-06 22:20:17,131 [myid:localhost:2281] - INFO > [main-SendThread(localhost:2281):ClientCnxn$SendThread@986] - Socket > connection established, initiating session, client: /127.0.0.1:60690, > server: localhost/127.0.0.1:2281 > 2020-05-06 22:20:17,156 [myid:localhost:2281] - WARN > [main-SendThread(localhost:2281):ClientCnxn$SendThread@1272] - Session 0x0 > for sever localhost/127.0.0.1:2281, Closing socket connection. Attempting > reconnect except it is a SessionExpiredException. > EndOfStreamException: Unable to read additional data from server sessionid > 0x0, likely server has closed socket > > *# cat /logs/zookeeper.out * > 2020-05-06 22:21:53,276 [myid:] - INFO [main:QuorumPeerConfig@173] - > Reading configuration from: /conf/zoo.cfg > 2020-05-06 22:21:53,298 [myid:] - INFO [main:QuorumPeerConfig@459] - > clientPortAddress is 0.0.0.0:2181 > 2020-05-06 22:21:53,298 [myid:] - INFO [main:QuorumPeerConfig@472] - > secureClientPortAddress is 0.0.0.0:2281 > 2020-05-06 22:21:53,303 [myid:] - INFO [main:X509Util@77] - Setting -D > jdk.tls.rejectClientInitiatedRenegotiation=true to disable client-initiated > TLS renegotiation > 2020-05-06 22:21:53,304 [myid:] - INFO [main:QuorumPeerConfig@479] - > observerMasterPort is not set > 2020-05-06 22:21:53,305 [myid:] - INFO [main:QuorumPeerConfig@496] - > metricsProvider.className is > org.apache.zookeeper.metrics.impl.DefaultMetricsProvider > 2020-05-06 22:21:53,348 [myid:1] - INFO [main:DatadirCleanupManager@78] - > autopurge.snapRetainCount set to 10 > 2020-05-06 22:21:53,348 [myid:1] - INFO [main:DatadirCleanupManager@79] - > autopurge.purgeInterval set to 24 > 2020-05-06 22:21:53,349 [myid:1] - INFO > [PurgeTask:DatadirCleanupManager$PurgeTask@139] - Purge task started. > 2020-05-06 22:21:53,353 [myid:1] - INFO [PurgeTask:FileTxnSnapLog@124] - > zookeeper.snapshot.trust.empty : true > 2020-05-06 22:21:53,358 [myid:1] - INFO [main:ManagedUtil@44] - Log4j 1.2 > jmx support found and enabled. > 2020-05-06 22:21:53,362 [myid:1] - INFO [PurgeTask:SnapStream@61] - > zookeeper.snapshot.compression.method = CHECKED > 2020-05-06 22:21:53,365 [myid:1] - INFO > [PurgeTask:DatadirCleanupManager$PurgeTask@145] - Purge task completed. > 2020-05-06 22:21:53,370 [myid:1] - INFO [main:QuorumPeerMain@151] - > Starting quorum peer > 2020-05-06 22:21:53,387 [myid:1] - INFO [main:ServerMetrics@62] - > ServerMetrics initialized with provider > org.apache.zookeeper.metrics.impl.DefaultMetricsProvider@3b6eb2ec > 2020-05-06 22:21:53,508 [myid:1] - INFO [main:NettyServerCnxnFactory@483] > - > zookeeper.client.portUnification=false > 2020-05-06 22:21:53,510 [myid:1] - INFO [main:NettyServerCnxnFactory@495] > - > zookeeper.netty.advancedFlowControl.enabled = false > 2020-05-06 22:21:53,510 [myid:1] - INFO [main:NettyServerCnxnFactory@105] > - > handshakeThrottlingEnabled = false, > zookeeper.netty.server.outstandingHandshake.limit = -1 > 2020-05-06 22:21:53,569 [myid:1] - INFO [main:ServerCnxnFactory@169] - > Using org.apache.zookeeper.server.NettyServerCnxnFactory as server > connection factory > 2020-05-06 22:21:53,571 [myid:1] - WARN [main:ServerCnxnFactory@309] - > maxCnxns is not configured, using default value 0. > 2020-05-06 22:21:53,571 [myid:1] - INFO [main:NettyServerCnxnFactory@483] > - > zookeeper.client.portUnification=false > 2020-05-06 22:21:53,572 [myid:1] - INFO [main:NettyServerCnxnFactory@495] > - > zookeeper.netty.advancedFlowControl.enabled = false > 2020-05-06 22:21:53,572 [myid:1] - INFO [main:NettyServerCnxnFactory@105] > - > handshakeThrottlingEnabled = false, > zookeeper.netty.server.outstandingHandshake.limit = -1 > 2020-05-06 22:21:53,573 [myid:1] - INFO [main:ServerCnxnFactory@169] - > Using org.apache.zookeeper.server.NettyServerCnxnFactory as server > connection factory > 2020-05-06 22:21:53,573 [myid:1] - WARN [main:ServerCnxnFactory@309] - > maxCnxns is not configured, using default value 0. > 2020-05-06 22:21:53,582 [myid:1] - INFO [main:QuorumPeer@752] - > zookeeper.quorumCnxnTimeoutMs=-1 > 2020-05-06 22:21:53,585 [myid:1] - INFO [main:FileTxnSnapLog@124] - > zookeeper.snapshot.trust.empty : true > 2020-05-06 22:21:53,586 [myid:1] - INFO [main:QuorumPeer@1680] - Local > sessions disabled > 2020-05-06 22:21:53,586 [myid:1] - INFO [main:QuorumPeer@1691] - Local > session upgrading disabled > 2020-05-06 22:21:53,586 [myid:1] - INFO [main:QuorumPeer@1658] - tickTime > set to 2000 > 2020-05-06 22:21:53,586 [myid:1] - INFO [main:QuorumPeer@1702] - > minSessionTimeout set to 4000 > 2020-05-06 22:21:53,586 [myid:1] - INFO [main:QuorumPeer@1713] - > maxSessionTimeout set to 40000 > 2020-05-06 22:21:53,586 [myid:1] - INFO [main:QuorumPeer@1738] - > initLimit > set to 10 > 2020-05-06 22:21:53,586 [myid:1] - INFO [main:QuorumPeer@1920] - > syncLimit > set to 5 > 2020-05-06 22:21:53,587 [myid:1] - INFO [main:QuorumPeer@1935] - > connectToLearnerMasterLimit set to 0 > 2020-05-06 22:21:53,603 [myid:1] - INFO [main:ZookeeperBanner@42] - > 2020-05-06 22:21:53,604 [myid:1] - INFO [main:ZookeeperBanner@42] - > ______ _ > 2020-05-06 22:21:53,604 [myid:1] - INFO [main:ZookeeperBanner@42] - > |___ > / | | > 2020-05-06 22:21:53,604 [myid:1] - INFO [main:ZookeeperBanner@42] - > / / > ___ ___ | | __ ___ ___ _ __ ___ _ __ > 2020-05-06 22:21:53,604 [myid:1] - INFO [main:ZookeeperBanner@42] - / > / > / _ \ / _ \ | |/ / / _ \ / _ \ | '_ \ / _ \ | '__| > 2020-05-06 22:21:53,604 [myid:1] - INFO [main:ZookeeperBanner@42] - / > /__ > | (_) | | (_) | | < | __/ | __/ | |_) | | __/ | | > 2020-05-06 22:21:53,604 [myid:1] - INFO [main:ZookeeperBanner@42] - > /_____| \___/ \___/ |_|\_\ \___| \___| | .__/ \___| |_| > 2020-05-06 22:21:53,604 [myid:1] - INFO [main:ZookeeperBanner@42] - > > | | > 2020-05-06 22:21:53,604 [myid:1] - INFO [main:ZookeeperBanner@42] - > > |_| > 2020-05-06 22:21:53,604 [myid:1] - INFO [main:ZookeeperBanner@42] - > 2020-05-06 22:21:53,606 [myid:1] - INFO [main:Environment@98] - Server > > environment:zookeeper.version=3.6.1--104dcb3e3fb464b30c5186d229e00af9f332524b, > built on 04/21/2020 15:01 GMT > 2020-05-06 22:21:53,606 [myid:1] - INFO [main:Environment@98] - Server > environment:host.name=zoo1 > 2020-05-06 22:21:53,607 [myid:1] - INFO [main:Environment@98] - Server > environment:java.version=1.8.0_252 > 2020-05-06 22:21:53,607 [myid:1] - INFO [main:Environment@98] - Server > environment:java.vendor=Oracle Corporation > 2020-05-06 22:21:53,607 [myid:1] - INFO [main:Environment@98] - Server > > environment:java.home=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el7_8.x86_64/jre > 2020-05-06 22:21:53,607 [myid:1] - INFO [main:Environment@98] - Server > > environment:java.class.path=/apache-zookeeper-3.6.1-bin/bin/../zookeeper-server/target/classes:/apache-zookeeper-3.6.1-bin/bin/../build/classes:/apache-zookeeper-3.6.1-bin/bin/../zookeeper-server/target/lib/*.jar:/apache-zookeeper-3.6.1-bin/bin/../build/lib/*.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/zookeeper-prometheus-metrics-3.6.1.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/zookeeper-jute-3.6.1.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/zookeeper-3.6.1.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/snappy-java-1.1.7.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/slf4j-log4j12-1.7.25.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/slf4j-api-1.7.25.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/simpleclient_servlet-0.6.0.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/simpleclient_hotspot-0.6.0.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/simpleclient_common-0.6.0.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/simpleclient-0.6.0.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/netty-transport-native-unix-common-4.1.48.Final.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/netty-transport-native-epoll-4.1.48.Final.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/netty-transport-4.1.48.Final.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/netty-resolver-4.1.48.Final.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/netty-handler-4.1.48.Final.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/netty-common-4.1.48.Final.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/netty-codec-4.1.48.Final.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/netty-buffer-4.1.48.Final.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/metrics-core-3.2.5.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/log4j-1.2.17.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/json-simple-1.1.1.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/jline-2.11.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/jetty-util-9.4.24.v20191120.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/jetty-servlet-9.4.24.v20191120.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/jetty-server-9.4.24.v20191120.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/jetty-security-9.4.24.v20191120.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/jetty-io-9.4.24.v20191120.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/jetty-http-9.4.24.v20191120.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/javax.servlet-api-3.1.0.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/jackson-databind-2.10.3.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/jackson-core-2.10.3.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/jackson-annotations-2.10.3.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/commons-lang-2.6.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/commons-cli-1.2.jar:/apache-zookeeper-3.6.1-bin/bin/../lib/audience-annotations-0.5.0.jar:/apache-zookeeper-3.6.1-bin/bin/../zookeeper-3.6.1.jar:/apache-zookeeper-3.6.1-bin/bin/../zookeeper-server/src/main/resources/lib/*.jar:/conf: > 2020-05-06 22:21:53,607 [myid:1] - INFO [main:Environment@98] - Server > > environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib > 2020-05-06 22:21:53,607 [myid:1] - INFO [main:Environment@98] - Server > environment:java.io.tmpdir=/tmp > 2020-05-06 22:21:53,607 [myid:1] - INFO [main:Environment@98] - Server > environment:java.compiler=<NA> > 2020-05-06 22:21:53,607 [myid:1] - INFO [main:Environment@98] - Server > environment:os.name=Linux > 2020-05-06 22:21:53,607 [myid:1] - INFO [main:Environment@98] - Server > environment:os.arch=amd64 > 2020-05-06 22:21:53,608 [myid:1] - INFO [main:Environment@98] - Server > environment:os.version=3.10.0-327.28.3.el7.x86_64 > 2020-05-06 22:21:53,608 [myid:1] - INFO [main:Environment@98] - Server > environment:user.name=root > 2020-05-06 22:21:53,608 [myid:1] - INFO [main:Environment@98] - Server > environment:user.home=/root > 2020-05-06 22:21:53,608 [myid:1] - INFO [main:Environment@98] - Server > environment:user.dir=/apache-zookeeper-3.6.1-bin > 2020-05-06 22:21:53,608 [myid:1] - INFO [main:Environment@98] - Server > environment:os.memory.free=47MB > 2020-05-06 22:21:53,608 [myid:1] - INFO [main:Environment@98] - Server > environment:os.memory.max=889MB > 2020-05-06 22:21:53,608 [myid:1] - INFO [main:Environment@98] - Server > environment:os.memory.total=57MB > 2020-05-06 22:21:53,608 [myid:1] - INFO [main:ZooKeeperServer@128] - > zookeeper.enableEagerACLCheck = false > 2020-05-06 22:21:53,608 [myid:1] - INFO [main:ZooKeeperServer@136] - > zookeeper.digest.enabled = true > 2020-05-06 22:21:53,608 [myid:1] - INFO [main:ZooKeeperServer@140] - > zookeeper.closeSessionTxn.enabled = true > 2020-05-06 22:21:53,609 [myid:1] - INFO [main:ZooKeeperServer@1434] - > zookeeper.flushDelay=0 > 2020-05-06 22:21:53,609 [myid:1] - INFO [main:ZooKeeperServer@1443] - > zookeeper.maxWriteQueuePollTime=0 > 2020-05-06 22:21:53,609 [myid:1] - INFO [main:ZooKeeperServer@1452] - > zookeeper.maxBatchSize=1000 > 2020-05-06 22:21:53,609 [myid:1] - INFO [main:ZooKeeperServer@241] - > zookeeper.intBufferStartingSizeBytes = 1024 > 2020-05-06 22:21:53,620 [myid:1] - INFO [main:WatchManagerFactory@42] - > Using org.apache.zookeeper.server.watch.WatchManager as watch manager > 2020-05-06 22:21:53,621 [myid:1] - INFO [main:WatchManagerFactory@42] - > Using org.apache.zookeeper.server.watch.WatchManager as watch manager > 2020-05-06 22:21:53,621 [myid:1] - INFO [main:ZKDatabase@132] - > zookeeper.snapshotSizeFactor = 0.33 > 2020-05-06 22:21:53,621 [myid:1] - INFO [main:ZKDatabase@152] - > zookeeper.commitLogCount=500 > 2020-05-06 22:21:53,653 [myid:1] - INFO [main:QuorumPeer@1999] - Using > TLS > encrypted quorum communication > 2020-05-06 22:21:53,653 [myid:1] - INFO [main:QuorumPeer@2007] - Port > unification disabled > 2020-05-06 22:21:53,654 [myid:1] - INFO [main:QuorumPeer@174] - > multiAddress.enabled set to false > 2020-05-06 22:21:53,654 [myid:1] - INFO [main:QuorumPeer@199] - > multiAddress.reachabilityCheckEnabled set to true > 2020-05-06 22:21:53,654 [myid:1] - INFO [main:QuorumPeer@186] - > multiAddress.reachabilityCheckTimeoutMs set to 1000 > 2020-05-06 22:21:53,654 [myid:1] - INFO [main:QuorumPeer@2461] - > QuorumPeer > communication is not secured! (SASL auth disabled) > 2020-05-06 22:21:53,654 [myid:1] - INFO [main:QuorumPeer@2486] - > quorum.cnxn.threads.size set to 20 > 2020-05-06 22:21:53,655 [myid:1] - INFO [main:FileSnap@85] - Reading > snapshot /data/version-2/snapshot.2df600000002 > 2020-05-06 22:21:53,675 [myid:1] - INFO [main:DataTree@1730] - The digest > in the snapshot has digest version of 2, , with zxid as 0x2df600000002, and > digest value as 352305768550 > 2020-05-06 22:21:53,692 [myid:1] - INFO [main:FileTxnSnapLog@363] - 2 > txns > loaded in 6 ms > 2020-05-06 22:21:53,692 [myid:1] - INFO [main:ZKDatabase@289] - Snapshot > loaded in 37 ms, highest zxid is 0x2df700000002, digest is 352305768550 > 2020-05-06 22:21:53,693 [myid:1] - INFO [main:NettyServerCnxnFactory@670] > - > binding to port 0.0.0.0/0.0.0.0:2181 > 2020-05-06 22:21:53,808 [myid:1] - ERROR [main:QuorumPeerMain@113] - > Unexpected exception, exiting abnormally > java.net.BindException: Address already in use > at sun.nio.ch.Net.bind0(Native Method) > at sun.nio.ch.Net.bind(Net.java:433) > at sun.nio.ch.Net.bind(Net.java:425) > at > sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:220) > at > > io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:134) > at > > io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:550) > at > > io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1334) > at > > io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:506) > at > > io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:491) > at > > io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:973) > at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:248) > at > io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:356) > at > > io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) > at > > io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472) > at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) > at > > io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) > at > io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) > at > > io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) > at java.lang.Thread.run(Thread.java:748) > 2020-05-06 22:21:53,812 [myid:1] - INFO [main:ZKAuditProvider@40] - > ZooKeeper audit is enabled. > 2020-05-06 22:21:53,816 [myid:1] - ERROR [main:ServiceUtils@42] - Exiting > JVM with code 1 > > What is the workaround here? Every time I set sslQuorum=true the ZK quorum > will not start because the bind issue. > > Need guidance on how to proceed - I'm at a loss and upgrading is blocked. > At > a minimum I need secured client and server side communication. > > > > -- > Sent from: http://zookeeper-user.578899.n2.nabble.com/ >