Created 01-18-2021 08:21 AM
Connection failed: Expected response imok, Actual response ruok is not executed in the whitelist alarm is there.
Here are the alarm log
[root@sandbox-hdf zookeeper]# cat zookeeper-zookeeper-server-sandbox-hdf.hortonworks.com.out
2021-01-18 21:40:56,370 - INFO [main:QuorumPeerConfig@103] - Reading configuration from: /usr/hdf/current/zookeeper-server/conf/zoo.cfg
2021-01-18 21:40:56,373 - ERROR [main:QuorumPeerConfig@287] - Invalid configuration, only one server specified (ignoring)
2021-01-18 21:40:56,375 - INFO [main:DatadirCleanupManager@78] - autopurge.snapRetainCount set to 30
2021-01-18 21:40:56,375 - INFO [main:DatadirCleanupManager@79] - autopurge.purgeInterval set to 24
2021-01-18 21:40:56,378 - WARN [main:QuorumPeerMain@113] - Either no config or no quorum defined in config, running in standalone mode
2021-01-18 21:40:56,378 - INFO [PurgeTask:DatadirCleanupManager$PurgeTask@138] - Purge task started.
2021-01-18 21:40:56,401 - INFO [PurgeTask:DatadirCleanupManager$PurgeTask@144] - Purge task completed.
2021-01-18 21:40:56,407 - INFO [main:QuorumPeerConfig@103] - Reading configuration from: /usr/hdf/current/zookeeper-server/conf/zoo.cfg
2021-01-18 21:40:56,407 - ERROR [main:QuorumPeerConfig@287] - Invalid configuration, only one server specified (ignoring)
2021-01-18 21:40:56,408 - INFO [main:ZooKeeperServerMain@95] - Starting server
2021-01-18 21:40:56,421 - INFO [main:Environment@100] - Server environment:zookeeper.version=3.4.6-7--1, built on 05/23/2018 15:44 GMT
2021-01-18 21:40:56,421 - INFO [main:Environment@100] - Server environment:host.name=sandbox-hdf.hortonworks.com
2021-01-18 21:40:56,421 - INFO [main:Environment@100] - Server environment:java.version=1.8.0_171
2021-01-18 21:40:56,422 - INFO [main:Environment@100] - Server environment:java.vendor=Oracle Corporation
2021-01-18 21:40:56,422 - INFO [main:Environment@100] - Server environment:java.home=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-8.b10.el7_5.x86_64/jre
2021-01-18 21:40:56,422 - INFO [main:Environment@100] - Server environment:java.class.path=/usr/hdf/current/zookeeper-server/bin/../build/classes:/usr/hdf/current/zookeeper-server/bin/../build/lib/*.jar:/usr/hdf/current/zookeeper-server/bin/../lib/xercesMinimal-1.9.6.2.jar:/usr/hdf/current/zookeeper-server/bin/../lib/wagon-provider-api-2.4.jar:/usr/hdf/current/zookeeper-server/bin/../lib/wagon-http-shared4-2.4.jar:/usr/hdf/current/zookeeper-server/bin/../lib/wagon-http-shared-1.0-beta-6.jar:/usr/hdf/current/zookeeper-server/bin/../lib/wagon-http-lightweight-1.0-beta-6.jar:/usr/hdf/current/zookeeper-server/bin/../lib/wagon-http-2.4.jar:/usr/hdf/current/zookeeper-server/bin/../lib/wagon-file-1.0-beta-6.jar:/usr/hdf/current/zookeeper-server/bin/../lib/slf4j-log4j12-1.6.1.jar:/usr/hdf/current/zookeeper-server/bin/../lib/slf4j-api-1.6.1.jar:/usr/hdf/current/zookeeper-server/bin/../lib/plexus-utils-3.0.8.jar:/usr/hdf/current/zookeeper-server/bin/../lib/plexus-interpolation-1.11.jar:/usr/hdf/current/zookeeper-server/bin/../lib/plexus-container-default-1.0-alpha-9-stable-1.jar:/usr/hdf/current/zookeeper-server/bin/../lib/netty-3.7.0.Final.jar:/usr/hdf/current/zookeeper-server/bin/../lib/nekohtml-1.9.6.2.jar:/usr/hdf/current/zookeeper-server/bin/../lib/maven-settings-2.2.1.jar:/usr/hdf/current/zookeeper-server/bin/../lib/maven-repository-metadata-2.2.1.jar:/usr/hdf/current/zookeeper-server/bin/../lib/maven-project-2.2.1.jar:/usr/hdf/current/zookeeper-server/bin/../lib/maven-profile-2.2.1.jar:/usr/hdf/current/zookeeper-server/bin/../lib/maven-plugin-registry-2.2.1.jar:/usr/hdf/current/zookeeper-server/bin/../lib/maven-model-2.2.1.jar:/usr/hdf/current/zookeeper-server/bin/../lib/maven-error-diagnostics-2.2.1.jar:/usr/hdf/current/zookeeper-server/bin/../lib/maven-artifact-manager-2.2.1.jar:/usr/hdf/current/zookeeper-server/bin/../lib/maven-artifact-2.2.1.jar:/usr/hdf/current/zookeeper-server/bin/../lib/maven-ant-tasks-2.1.3.jar:/usr/hdf/current/zookeeper-server/bin/../lib/log4j-1.2.16.jar:/usr/hdf/current/zookeeper-server/bin/../lib/jsoup-1.7.1.jar:/usr/hdf/current/zookeeper-server/bin/../lib/jline-0.9.94.jar:/usr/hdf/current/zookeeper-server/bin/../lib/commons-logging-1.1.1.jar:/usr/hdf/current/zookeeper-server/bin/../lib/commons-io-2.2.jar:/usr/hdf/current/zookeeper-server/bin/../lib/commons-codec-1.6.jar:/usr/hdf/current/zookeeper-server/bin/../lib/classworlds-1.1-alpha-2.jar:/usr/hdf/current/zookeeper-server/bin/../lib/backport-util-concurrent-3.1.jar:/usr/hdf/current/zookeeper-server/bin/../lib/ant-launcher-1.8.0.jar:/usr/hdf/current/zookeeper-server/bin/../lib/ant-1.8.0.jar:/usr/hdf/current/zookeeper-server/bin/../zookeeper-3.4.6.3.1.2.0-7.jar:/usr/hdf/current/zookeeper-server/bin/../src/java/lib/*.jar:/usr/hdf/current/zookeeper-server/conf::/usr/share/zookeeper/*:/usr/share/zookeeper/*
2021-01-18 21:40:56,424 - INFO [main:Environment@100] - Server environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
2021-01-18 21:40:56,424 - INFO [main:Environment@100] - Server environment:java.io.tmpdir=/tmp
2021-01-18 21:40:56,424 - INFO [main:Environment@100] - Server environment:java.compiler=<NA>
2021-01-18 21:40:56,425 - INFO [main:Environment@100] - Server environment:os.name=Linux
2021-01-18 21:40:56,425 - INFO [main:Environment@100] - Server environment:os.arch=amd64
2021-01-18 21:40:56,425 - INFO [main:Environment@100] - Server environment:os.version=4.9.93-linuxkit-aufs
2021-01-18 21:40:56,425 - INFO [main:Environment@100] - Server environment:user.name=zookeeper
2021-01-18 21:40:56,425 - INFO [main:Environment@100] - Server environment:user.home=/home/zookeeper
2021-01-18 21:40:56,425 - INFO [main:Environment@100] - Server environment:user.dir=/home/zookeeper
2021-01-18 21:40:56,429 - INFO [main:ZooKeeperServer@755] - tickTime set to 3000
2021-01-18 21:40:56,430 - INFO [main:ZooKeeperServer@764] - minSessionTimeout set to -1
2021-01-18 21:40:56,430 - INFO [main:ZooKeeperServer@773] - maxSessionTimeout set to -1
2021-01-18 21:40:56,446 - INFO [main:NIOServerCnxnFactory@94] - binding to port 0.0.0.0/0.0.0.0:2181
2021-01-18 21:40:56,447 - ERROR [main:ZooKeeperServerMain@63] - 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:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:67)
at org.apache.zookeeper.server.NIOServerCnxnFactory.configure(NIOServerCnxnFactory.java:95)
at org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(ZooKeeperServerMain.java:111)
at org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKeeperServerMain.java:86)
at org.apache.zookeeper.server.ZooKeeperServerMain.main(ZooKeeperServerMain.java:52)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:116)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)
Created 01-18-2021 09:02 AM
Hello @SurajP
Thanks for using Cloudera Community. The Error shows a BindAddress issue on Port 2181. Kindly check whether the Port 2181 is being used by any Process on the Host, wherein the ZooKeeper Service is being started. If Yes, Terminate the Process after reviewing the same & try starting the ZooKeeper Service again.
- Smarak
Created 03-19-2021 12:09 AM
Hello @SurajP
KIndly confirm the issue is resolved. If Yes, Please share the Steps for our fellow Community Members & mark the Post as resolved. If the issue persists, Please share the ZooKeeper Logs.
- Smarak