Zookeeper connection error

后端 未结 23 1273
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-24 05:41

We have a standalone zookeeper setup on a dev machine. It works fine for every other dev machine except this one testdev machine.

We get this error over and over aga

23条回答
  •  旧巷少年郎
    2020-12-24 06:26

    Check the zookeeper logs (/var/log/zookeeper). It looks like a connection is established, which should mean there is a record of it.

    I had the same situation and it was because a process opened connections and failed to close them. This eventually exceeded the per-host connection limit and my logs were overflowing with

    2016-08-03 15:21:13,201 [myid:] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@188] - Too many connections from /172.31.38.64 - max is 50
    

    Assuming zookeeper is on the usual port, you could do a check for that with:

    lsof -i -P | grep 2181
    

提交回复
热议问题