Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Connection failed: Expected response imok

Connection failed: Expected response imok

New Contributor

hi Team,

Iam getting below error in zookeeper

Connection failed: Expected response imok, Actual response to edgenode.com:2181

2017-12-12 23:59:15,869 - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] - Accepted socket connection from /**.**.**.**:52093 2017-12-12 23:59:15,870 - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@357] - caught end of stream exception EndOfStreamException: Unable to read additional data from client sessionid 0x0, likely client has closed socket at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:228) at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208) at java.lang.Thread.run(Thread.java:745)

1 REPLY 1

Re: Connection failed: Expected response imok

New Contributor

Increasing the number of connections of zookeeper will solve your problem. The parameter is maxClientCnxns which has to be included inside your zoo.cfg file.

It's an old post but hope it helps somebody someday.