【问题标题】:zookeeper colony :connection refused :Cannot open channel to 3 at election address /192.168.10.129:3883zookeeper 殖民地:connection denied :Cannot open channel to 3 atelection address /192.168.10.129:3883
【发布时间】:2017-09-07 20:06:55
【问题描述】:

我用的是centos6,zookeeper3.4.6,伪分布式集群。发生连接被拒绝:无法在选举地址/192.168.10.129:3883 处打开通道 3 现在配置如下; zookeep1/data/myid:1 zookeep2/数据/myid:2 zookeep3/data/myid:3

zookeep1/zoo.cfg:
/home/lwj/solrcloud/zookeep1/data/
客户端端口=2181
server.1=127.0.0.1:2881:3881
server.2=127.0.0.1:2882:3882
server.3=127.0.0.1:2883:3883

zookeep2/zoo.cfg:
/home/lwj/solrcloud/zookeep2/data/
客户端端口=2182
server.1=127.0.0.1:2881:3881
server.2=127.0.0.1:2882:3882
server.3=127.0.0.1:2883:3883

zookeep3/zoo.cfg:
/home/lwj/solrcloud/zookeep3/data/
客户端端口=2183
server.1=127.0.0.1:2881:3881
server.2=127.0.0.1:2882:3882
server.3=127.0.0.1:2883:3883

this is the error

【问题讨论】:

  • 你的问题到底是什么?
  • 这个zookeeper集群启动异常。我找不到问题。

标签: apache-zookeeper


【解决方案1】:

看起来您正在同一主机上运行 3 个 Zookeeper 实例。检查主机中 3882 端口的状态。netstat -a | grep 3882

清除主机中的iptables以释放端口service iptables clear

此外,在配置中提供 IP 192.168.10.129 而不是 localhost(127.0.0.1) 是一种很好的做法。

查看zookeeper端口详情看:

what is zookeeper port and its usage?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-05-16
    • 2014-04-14
    • 2020-08-21
    • 2021-08-11
    • 2020-07-09
    • 2021-11-08
    • 2011-07-05
    • 2022-12-27
    相关资源
    最近更新 更多