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

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


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.

; ;