Support Questions
Find answers, ask questions, and share your expertise
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


hi Team,

Iam getting below error in zookeeper

Connection failed: Expected response imok, Actual response to

2017-12-12 23:59:15,869 - INFO [NIOServerCxn.Factory:] - Accepted socket connection from /**.**.**.**:52093 2017-12-12 23:59:15,870 - WARN [NIOServerCxn.Factory:] - 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( at at


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.

Don't have an account?
Coming from Hortonworks? Activate your account here