Support Questions
Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

Connection failed: Expected response imok

Explorer

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

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.