Support Questions
Find answers, ask questions, and share your expertise

Zookeeper issue

Highlighted

Zookeeper issue

Explorer

I got the below error in zookeeper log in cloudera which caused issue in hdfs failover controller.

 

ERROR org.apache.zookeeper.server.quorum.LearnerHandler: Unexpected exception causing shutdown while sock still open
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:170)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
at java.io.DataInputStream.readInt(DataInputStream.java:387)
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:99)
at org.apache.zookeeper.server.quorum.LearnerHandler.run(LearnerHandler.java:482)

 

WARN org.apache.zookeeper.server.quorum.LearnerHandler: ******* GOODBYE /xxx.xxx.xxx.xxx:44249 ********
WARN org.apache.zookeeper.server.quorum.LearnerHandler: ******* GOODBYE /yyy.yyy.yyy.yyy:43090 ********
INFO org.apache.zookeeper.server.quorum.Leader: Shutting down
INFO org.apache.zookeeper.server.quorum.Leader: Shutdown called
java.lang.Exception: shutdown Leader! reason: Not sufficient followers synced, only synced with sids: [ 3 ]
at org.apache.zookeeper.server.quorum.Leader.shutdown(Leader.java:489)
at org.apache.zookeeper.server.quorum.Leader.lead(Leader.java:464)
at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:753)

 

 

 

Please suggest the reason of the issue and solution to fix it.

 

 

Thanks in advance.

Don't have an account?