【README】在 192.168.163.201 机器上 启动zk ,并查看zk 这台; 即 集群只有2台机器, 201 202

--ZOO.cfg# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
dataDir=/opt/module/zookeeper-3.4.10/zkdata
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1
# cluster conf
server.1=192.168.163.201:2888:3888
server.2=192.168.163.202:2888:3888

【1】报错现场

在201上启动zk,如下:

[root@localhost zookeeper-3.4.10]# ./bin/zkServer.sh start
ZooKeeper JMX enabled by default
Using config: /opt/module/zookeeper-3.4.10/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
[root@localhost zookeeper-3.4.10]#
[root@localhost zookeeper-3.4.10]#
[root@localhost zookeeper-3.4.10]# ./bin/zkServer.sh status
ZooKeeper JMX enabled by default
Using config: /opt/module/zookeeper-3.4.10/bin/../conf/zoo.cfg
Error contacting service. It is probably not running.

【2】解决方法

第一步: 查看 zookeeper.out 输出日志,如下:

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

第2步: 很明显,意识到 202 这台机器的 zk没有启动,

启动 202, 如下:

经过查看 status, 202 是leader 

第3步, 我们查看201 的zk 状态(这里无需再次启动,因为201已经启动了),201是个 follower 

bingo

小结:解决该问题的方法是在 查看zk启动的日志文件, zookeeper.out 文件;

centos8启动zk集群失败:zk Error contacting service. It is probably not running.相关推荐

  1. Zookeeper启动成功,报错“Error contacting service. It is probably not running”

    团队要我搭一个环境,里面遇到了Zookeeper,按照步骤一步步来,三个节点启动成功了,查看状态"Error contacting service. It is probably not r ...

  2. zookeeper环境搭建中的几个坑[Error contacting service. It is probably not running]的分析及解决

    Zookeeper简介 关于zk的介绍, zk的paxos算法, 网上已经有各位大神在写了, 本文主要写我在搭建过程中的几个极有可能遇到的坑. Zookeeper部署中的坑 坑之一 Error con ...

  3. Zookeeper出现Error contacting service. It is probably not running问题

    Zookeeper出现Error contacting service. It is probably not running问题 使用多执行同时启动三台虚拟机的zookeeper能够成功启动,但查看 ...

  4. Zookeeper集群搭建(涵盖命令详解)与Error contacting service. It is probably not running的问题解决

    搭建部分参考文章:http://www.cnblogs.com/luotianshuai/p/5206662.html 这篇博客分为四个部分: >>>zookeeper简介 > ...

  5. 在配置zookeeper集群的时候提示Error contacting service. It is probably not running.

    在配置zookeeper集群的时候,我使用的是三台机器,首先进入conf文件中使用 vim zoo.cfg 进去配置文件,修改数据文件的位置为 dataDir=/home/hao/Pictures/z ...

  6. 查看zk状态时报错“Error contacting service. It is probably not running

    1.查看zk状态时报错"Error contacting service. It is probably not running" 解决方式,查看zookeeper.out日志文件 ...

  7. 安装zookeeper时候,可以查看进程启动,但是状态显示报错:Error contacting service. It is probably not running

    安装zookeeper-3.3.2的时候,启动正常没报错,但zkServer.sh status查看状态的时候却出现错误,如下: JMX enabled by default Using config ...

  8. zookeeper 启动错误Error contacting service. It is probably not running

    ./zkServer.sh start zookeeper版本为apache-zookeeper-3.7.1 启动zookeeper后 [root@localhost bin]# ./zkServer ...

  9. zookeeper单机模式启动报错Error contacting service It is probably not running

    今天在自己的服务器上安装部署了zookeeper进行个人练习,跟着教程下载.安装.修改cfg的配置文件,但是在启动的时候,显示启动失败:Error contacting service. It is ...

最新文章

  1. The build tools for v141 (Platform Toolset = 'v141') cannot be found
  2. 使用 postman 给 API 写测试
  3. Windows 9信息曝光:统一开发接口、整合Cortana到任务栏
  4. H.264/AVC 标准中CAVLC 和CABAC 熵编码算法研究
  5. python操作mysql数据库的常用方法使用详解
  6. Apache cxf JaxRs基本应用
  7. Python学习笔记:文件读/写方法汇总
  8. vue 父向子组件传递数据,子组件向父组件传递数据方式
  9. 【观点】微博的弊端和它的真正意义
  10. 推荐 | 微软SAR近邻协同过滤算法相关问题(三)
  11. 华为nova3e怎么分屏_华为手机怎么分屏?边看视频边聊微信!不是所有手机都能做到...
  12. ftrace跟踪内核_用Ftrace跟踪内核模块
  13. 飞机订票系统- c语言课程设,C语言课程设计飞机订票系统设计
  14. 人工智能Java SDK: BIGGAN 图像自动生成
  15. LTE下行物理层传输机制(5)-DCI格式的选择和DCI1A
  16. css实现接地气的checkbox框
  17. RFBnet论文及其代码详解
  18. And The Winner Is --- 百度网盘
  19. PING用一生诠释了TCP/IP------二三层转发为PING劈荆斩棘(转载)
  20. 联邦学习安全防御之差分隐私

热门文章

  1. 2021牛客暑期多校训练营6 :D Gambling Monster 期望dp + fwt + cdq分治
  2. Manthan, Codefest 19 (open for everyone, rated, Div. 1 + Div. 2) F. Bits And Pieces sosdp预处理超集
  3. 【NOI online 2】游戏【二项式反演】【树上背包】
  4. cf1526E. Oolimry and Suffix Array(未解决)
  5. 牛客NOIP2021提高组OI赛前模拟赛第一场T3——与巨(数学)
  6. 模板:K-D tree
  7. 模板:线段树优化建图
  8. P7888-「MCOI-06」Distinct Subsequences【dp】
  9. CF1119H-Triple【FWT】
  10. P1967,ssl2267-货车运输【树上倍增LCA,最小生成树变形kruskal】