Member since
10-10-2017
6
Posts
1
Kudos Received
0
Solutions
10-30-2017
02:43 PM
Thank You fol quick response, Answer of above you ask to me, root@hzk3:/usr/hdp/2.6.2.14-5/zookeeper/bin# hostname -f
hzk3.mstorm.com
root@hzk3:/usr/hdp/2.6.2.14-5/zookeeper/bin# netstat -tnlpa | grep 2181
tcp 0 0 10.13.10.173:51752 10.13.10.173:2181 TIME_WAIT -
tcp6 0 0 :::2181 :::* LISTEN 19358/java
tcp6 0 0 ::1:52474 ::1:2181 TIME_WAIT -
root@hzk3:/usr/hdp/2.6.2.14-5/zookeeper/bin# echo state | nc localhost 2181
This ZooKeeper instance is not currently serving requests
root@hzk3:/usr/hdp/2.6.2.14-5/zookeeper/bin# nc -v hzk3.mstorm.com 2181
Connection to hzk3.mstorm.com 2181 port [tcp/*] succeeded!
^C
root@hzk3:/usr/hdp/2.6.2.14-5/zookeeper/bin# ps -ef | grep zookeeper
zookeep+ 19358 1 1 14:38 ? 00:00:02 /usr/lib/jvm/java-1.8.0-openjdk-amd64/bin/java -Dzookeeper.log.dir=/var/log/zookeeper -Dzookeeper.log.file=zookeeper-zookeeper-server-hzk3.log -Dzookeeper.root.logger=INFO,ROLLINGFILE -cp /usr/hdp/current/zookeeper-server/bin/../build/classes:/usr/hdp/current/zookeeper-server/bin/../build/lib/*.jar:/usr/hdp/current/zookeeper-server/bin/../lib/xercesMinimal-1.9.6.2.jar:/usr/hdp/current/zookeeper-server/bin/../lib/wagon-provider-api-2.4.jar:/usr/hdp/current/zookeeper-server/bin/../lib/wagon-http-shared4-2.4.jar:/usr/hdp/current/zookeeper-server/bin/../lib/wagon-http-shared-1.0-beta-6.jar:/usr/hdp/current/zookeeper-server/bin/../lib/wagon-http-lightweight-1.0-beta-6.jar:/usr/hdp/current/zookeeper-server/bin/../lib/wagon-http-2.4.jar:/usr/hdp/current/zookeeper-server/bin/../lib/wagon-file-1.0-beta-6.jar:/usr/hdp/current/zookeeper-server/bin/../lib/slf4j-log4j12-1.6.1.jar:/usr/hdp/current/zookeeper-server/bin/../lib/slf4j-api-1.6.1.jar:/usr/hdp/current/zookeeper-server/bin/../lib/plexus-utils-3.0.8.jar:/usr/hdp/current/zookeeper-server/bin/../lib/plexus-interpolation-1.11.jar:/usr/hdp/current/zookeeper-server/bin/../lib/plexus-container-default-1.0-alpha-9-stable-1.jar:/usr/hdp/current/zookeeper-server/bin/../lib/netty-3.7.0.Final.jar:/usr/hdp/current/zookeeper-server/bin/../lib/nekohtml-1.9.6.2.jar:/usr/hdp/current/zookeeper-server/bin/../lib/maven-settings-2.2.1.jar:/usr/hdp/current/zookeeper-server/bin/../lib/maven-repository-metadata-2.2.1.jar:/usr/hdp/current/zookeeper-server/bin/../lib/maven-project-2.2.1.jar:/usr/hdp/current/zookeeper-server/bin/../lib/maven-profile-2.2.1.jar:/usr/hdp/current/zookeeper-server/bin/../lib/maven-plugin-registry-2.2.1.jar:/usr/hdp/current/zookeeper-server/bin/../lib/maven-model-2.2.1.jar:/usr/hdp/current/zookeeper-server/bin/../lib/maven-error-diagnostics-2.2.1.jar:/usr/hdp/current/zookeeper-server/bin/../lib/maven-artifact-manager-2.2.1.jar:/usr/hdp/current/zookeeper-server/bin/../lib/maven-artifact-2.2.1.jar:/usr/hdp/current/zookeeper-server/bin/../lib/maven-ant-tasks-2.1.3.jar:/usr/hdp/current/zookeeper-server/bin/../lib/log4j-1.2.16.jar:/usr/hdp/current/zookeeper-server/bin/../lib/jsoup-1.7.1.jar:/usr/hdp/current/zookeeper-server/bin/../lib/jline-0.9.94.jar:/usr/hdp/current/zookeeper-server/bin/../lib/commons-logging-1.1.1.jar:/usr/hdp/current/zookeeper-server/bin/../lib/commons-io-2.2.jar:/usr/hdp/current/zookeeper-server/bin/../lib/commons-codec-1.6.jar:/usr/hdp/current/zookeeper-server/bin/../lib/classworlds-1.1-alpha-2.jar:/usr/hdp/current/zookeeper-server/bin/../lib/backport-util-concurrent-3.1.jar:/usr/hdp/current/zookeeper-server/bin/../lib/ant-launcher-1.8.0.jar:/usr/hdp/current/zookeeper-server/bin/../lib/ant-1.8.0.jar:/usr/hdp/current/zookeeper-server/bin/../zookeeper-3.4.6.2.6.2.14-5.jar:/usr/hdp/current/zookeeper-server/bin/../src/java/lib/*.jar:/usr/hdp/current/zookeeper-server/conf::/usr/share/zookeeper/*:/usr/share/zookeeper/* -Xmx1024m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false org.apache.zookeeper.server.quorum.QuorumPeerMain /usr/hdp/current/zookeeper-server/conf/zoo.cfg
root 19510 3925 0 14:40 ? 00:00:00 grep --color=auto zookeeper less /var/log/zookeeper/zookeeper.log 2017-10-30 08:31:14,510 - INFO [LearnerHandler-/10.13.10.171:43240:LearnerHandler@462] - Sending SNAP
2017-10-30 08:31:14,511 - INFO [LearnerHandler-/10.13.10.171:43240:LearnerHandler@486] - Sending snapshot last zxid of peer is 0x100000380 zxid of leader is 0x100000655sent zxid of db as 0x100000655
2017-10-30 08:31:14,512 - ERROR [LearnerHandler-/10.13.10.171:43240:LearnerHandler@633] - Unexpected exception causing shutdown while sock still open
java.io.EOFException
at java.io.DataInputStream.readInt(DataInputStream.java:392)
at org.apache.jute.BinaryInputArchive.readInt(BinaryInputArchive.java:63)
at org.apache.zookeeper.server.quorum.QuorumPacket.deserialize(QuorumPacket.java:83)
at org.apache.jute.BinaryInputArchive.readRecord(BinaryInputArchive.java:103)
at org.apache.zookeeper.server.quorum.LearnerHandler.run(LearnerHandler.java:517)
2017-10-30 08:31:14,512 - WARN [LearnerHandler-/10.13.10.171:43240:LearnerHandler@646] - ******* GOODBYE /10.13.10.171:43240 ********
2017-10-30 08:31:14,515 - INFO [WorkerReceiver[myid=2]:FastLeaderElection@597] - Notification: 1 (message format version), 3 (n.leader), 0x100000380 (n.zxid), 0x2 (n.round), LOOKING (n.state), 3 (n.sid), 0x1 (n.peerEpoch) LEADING (my state)
2017-10-30 08:31:14,517 - INFO [LearnerHandler-/10.13.10.171:43242:LearnerHandler@330] - Follower sid: 3 : info : org.apache.zookeeper.server.quorum.QuorumPeer$QuorumServer@7c55649
2017-10-30 08:31:14,517 - INFO [LearnerHandler-/10.13.10.171:43242:LearnerHandler@385] - Synchronizing with Follower sid: 3 maxCommittedLog=0x100000655 minCommittedLog=0x100000461 peerLastZxid=0x100000380
2017-10-30 08:31:14,517 - WARN [LearnerHandler-/10.13.10.171:43242:LearnerHandler@446] - Unhandled proposal scenario
2017-10-30 08:31:14,517 - INFO [LearnerHandler-/10.13.10.171:43242:LearnerHandler@462] - Sending SNAP
2017-10-30 08:31:14,518 - INFO [LearnerHandler-/10.13.10.171:43242:LearnerHandler@486] - Sending snapshot last zxid of peer is 0x100000380 zxid of leader is 0x100000655sent zxid of db as 0x100000655
2017-10-30 08:31:14,519 - ERROR [LearnerHandler-/10.13.10.171:43242:LearnerHandler@633] - Unexpected exception causing shutdown while sock still open
java.io.EOFException
at java.io.DataInputStream.readInt(DataInputStream.java:392)
at org.apache.jute.BinaryInputArchive.readInt(BinaryInputArchive.java:63)
at org.apache.zookeeper.server.quorum.QuorumPacket.deserialize(QuorumPacket.java:83)
at org.apache.jute.BinaryInputArchive.readRecord(BinaryInputArchive.java:103)
at org.apache.zookeeper.server.quorum.LearnerHandler.run(LearnerHandler.java:517)
2017-10-30 08:31:14,519 - WARN [LearnerHandler-/10.13.10.171:43242:LearnerHandler@646] - ******* GOODBYE /10.13.10.171:43242 ********
2017-10-30 08:31:14,523 - INFO [WorkerReceiver[myid=2]:FastLeaderElection@597] - Notification: 1 (message format version), 3 (n.leader), 0x100000380 (n.zxid), 0x2 (n.round), LOOKING (n.state), 3 (n.sid), 0x1 (n.peerEpoch) LEADING (my state)
2017-10-30 08:31:14,525 - INFO [LearnerHandler-/10.13.10.171:43244:LearnerHandler@330] - Follower sid: 3 : info : org.apache.zookeeper.server.quorum.QuorumPeer$QuorumServer@7c55649
2017-10-30 08:31:14,525 - INFO [LearnerHandler-/10.13.10.171:43244:LearnerHandler@385] - Synchronizing with Follower sid: 3 maxCommittedLog=0x100000655 minCommittedLog=0x100000461 peerLastZxid=0x100000380
2017-10-30 08:31:14,526 - WARN [LearnerHandler-/10.13.10.171:43244:LearnerHandler@446] - Unhandled proposal scenario
... View more
10-30-2017
02:04 PM
1 Kudo
In HDP 2.6.2.14 we are running 3 zookeeper. It was up and running and also open port. We are opened firewall also.but can not connect server using /usr/hdp/2.6.2.14-5/zookeeper/bin# ./zkCli.sh -server localhost:2181 Below the error, Connecting to localhost:2181
2017-10-30 14:03:16,972 - INFO [main:Environment@100] - Client environment:zookeeper.version=3.4.6-5--1, built on 10/23/2017 21:19 GMT
2017-10-30 14:03:16,975 - INFO [main:Environment@100] - Client environment:host.name=hzk3.mstorm.com
2017-10-30 14:03:16,976 - INFO [main:Environment@100] - Client environment:java.version=1.8.0_141
2017-10-30 14:03:16,978 - INFO [main:Environment@100] - Client environment:java.vendor=Oracle Corporation
2017-10-30 14:03:16,978 - INFO [main:Environment@100] - Client environment:java.home=/usr/lib/jvm/java-8-openjdk-amd64/jre
2017-10-30 14:03:16,978 - INFO [main:Environment@100] - Client environment:java.class.path=/usr/hdp/2.6.2.14-5/zookeeper/bin/../build/classes:/usr/hdp/2.6.2.14-5/zookeeper/bin/../build/lib/*.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/xercesMinimal-1.9.6.2.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/wagon-provider-api-2.4.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/wagon-http-shared4-2.4.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/wagon-http-shared-1.0-beta-6.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/wagon-http-lightweight-1.0-beta-6.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/wagon-http-2.4.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/wagon-file-1.0-beta-6.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/slf4j-log4j12-1.6.1.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/slf4j-api-1.6.1.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/plexus-utils-3.0.8.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/plexus-interpolation-1.11.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/plexus-container-default-1.0-alpha-9-stable-1.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/netty-3.7.0.Final.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/nekohtml-1.9.6.2.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/maven-settings-2.2.1.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/maven-repository-metadata-2.2.1.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/maven-project-2.2.1.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/maven-profile-2.2.1.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/maven-plugin-registry-2.2.1.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/maven-model-2.2.1.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/maven-error-diagnostics-2.2.1.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/maven-artifact-manager-2.2.1.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/maven-artifact-2.2.1.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/maven-ant-tasks-2.1.3.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/log4j-1.2.16.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/jsoup-1.7.1.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/jline-0.9.94.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/commons-logging-1.1.1.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/commons-io-2.2.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/commons-codec-1.6.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/classworlds-1.1-alpha-2.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/backport-util-concurrent-3.1.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/ant-launcher-1.8.0.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../lib/ant-1.8.0.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../zookeeper-3.4.6.2.6.2.14-5.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../src/java/lib/*.jar:/usr/hdp/2.6.2.14-5/zookeeper/bin/../conf::/usr/share/zookeeper/*
2017-10-30 14:03:16,979 - INFO [main:Environment@100] - Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
2017-10-30 14:03:16,979 - INFO [main:Environment@100] - Client environment:java.io.tmpdir=/tmp
2017-10-30 14:03:16,979 - INFO [main:Environment@100] - Client environment:java.compiler=<NA>
2017-10-30 14:03:16,979 - INFO [main:Environment@100] - Client environment:os.name=Linux
2017-10-30 14:03:16,980 - INFO [main:Environment@100] - Client environment:os.arch=amd64
2017-10-30 14:03:16,980 - INFO [main:Environment@100] - Client environment:os.version=4.2.0-42-generic
2017-10-30 14:03:16,980 - INFO [main:Environment@100] - Client environment:user.name=root
2017-10-30 14:03:16,980 - INFO [main:Environment@100] - Client environment:user.home=/root
2017-10-30 14:03:16,980 - INFO [main:Environment@100] - Client environment:user.dir=/usr/hdp/2.6.2.14-5/zookeeper/bin
2017-10-30 14:03:16,982 - INFO [main:ZooKeeper@438] - Initiating client connection, connectString=localhost:2181 sessionTimeout=30000 watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@15327b79
Welcome to ZooKeeper!
2017-10-30 14:03:17,006 - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1019] - Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error)
JLine support is enabled
2017-10-30 14:03:17,078 - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@864] - Socket connection established, initiating session, client: /0:0:0:0:0:0:0:1:42492, server: localhost/0:0:0:0:0:0:0:1:2181
2017-10-30 14:03:17,083 - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1142] - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
[zk: localhost:2181(CONNECTING) 0] 2017-10-30 14:03:18,071 - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1019] - Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2017-10-30 14:03:18,072 - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@864] - Socket connection established, initiating session, client: /127.0.0.1:54234, server: localhost/127.0.0.1:2181
2017-10-30 14:03:18,073 - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1142] - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
2017-10-30 14:03:19,805 - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1019] - Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error)
2017-10-30 14:03:19,806 - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@864] - Socket connection established, initiating session, client: /0:0:0:0:0:0:0:1:42508, server: localhost/0:0:0:0:0:0:0:1:2181
2017-10-30 14:03:19,807 - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1142] - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
2017-10-30 14:03:20,872 - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1019] - Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2017-10-30 14:03:20,873 - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@864] - Socket connection established, initiating session, client: /127.0.0.1:54250, server: localhost/127.0.0.1:2181
2017-10-30 14:03:20,873 - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1142] - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
2017-10-30 14:03:22,648 - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1019] - Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error)
2017-10-30 14:03:22,649 - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@864] - Socket connection established, initiating session, client: /0:0:0:0:0:0:0:1:42522, server: localhost/0:0:0:0:0:0:0:1:2181
2017-10-30 14:03:22,649 - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1142] - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
2017-10-30 14:03:22,901 - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1019] - Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2017-10-30 14:03:22,902 - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@864] - Socket connection established, initiating session, client: /127.0.0.1:54264, server: localhost/127.0.0.1:2181
2017-10-30 14:03:22,903 - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1142] - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
... View more
Labels: