Zookeeper connection error

后端 未结 23 1359
佛祖请我去吃肉
佛祖请我去吃肉 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:41

    In my case, I config zoo.cfg like this:

    server.1=host-1:2888:3888
    server.2=host-2:2888:3888
    server.3=host-3:2888:3888
    

    But, in host-1, I config host-1 resolve to 127.0.0.1 in /etc/hosts:

    127.0.0.1   localhost host-1
    

    which may results other hosts can't communicate with it. Resolve host-1 to its real ip solved this problem.

    Hope this can help.

提交回复
热议问题