Zookeeper集群搭建的一些问题

问题描述一:

Cannot open channel to 2 at election address /192.168.60.132:3888

解决方案:
查看zookeeper配置文件zoo.cfg / zoo_sample.cfg中集群配置部分

server.1=zoo1-net1:2888:3888|zoo1-net2:2889:3889
server.2=zoo2-net1:2888:3888|zoo2-net2:2889:3889
server.3=zoo3-net1:2888:3888|zoo3-net2:2889:3889

这里server.1后面的 = 前后注意不要有空格

问题描述二:

 Unable to read additional data from server sessionid 0x0, likely server has closed socket

这里是网路通信问题
解决方案:

关闭各个节点主机之间的防火墙,如果单主机多节点构成的集群请省略,请另谋高就

查看防火墙状态
systemctl status firewalld

停止防火墙
systemctl stop firewalld

永久关闭防火墙
systemctl disable firewalld

相关推荐

  1. Zookeeper搭建一些问题

    2024-05-10 13:28:02       33 阅读
  2. k8s 搭建一些

    2024-05-10 13:28:02       50 阅读
  3. Zookeeper搭建问题

    2024-05-10 13:28:02       26 阅读
  4. zookeeper安装

    2024-05-10 13:28:02       58 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-05-10 13:28:02       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-05-10 13:28:02       106 阅读
  3. 在Django里面运行非项目文件

    2024-05-10 13:28:02       87 阅读
  4. Python语言-面向对象

    2024-05-10 13:28:02       96 阅读

热门阅读

  1. Go 使用mqtt

    2024-05-10 13:28:02       32 阅读
  2. 企微SCRM营销:解锁客户关系管理新篇章

    2024-05-10 13:28:02       36 阅读
  3. 自我模拟面试

    2024-05-10 13:28:02       28 阅读
  4. ThinkPHP5.1 验证器

    2024-05-10 13:28:02       34 阅读
  5. 双色球案例【C#】

    2024-05-10 13:28:02       32 阅读
  6. 什么是MTC证书?清关为什么要提交MTC?

    2024-05-10 13:28:02       33 阅读
  7. el-table vxe-table 表格宽度拖拽

    2024-05-10 13:28:02       32 阅读