Zookeep启动异常:Error contacting service. It is probably not running.

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Zookeep启动异常:Error contacting service. It is probably not running.相关的知识,希望对你有一定的参考价值。

Zookeep安装启动异常

   异常提示:

[[email protected] bin]#  ./zkServer.sh status
JMX enabled by default
Using config: /usr/local/zk/bin/../conf/zoo.cfg
Error contacting service. It is probably not running
解决方案:
网上问题答案有许多种,一一归纳:
1. zoo.cfg配置文件中指定目录却没有创建! 创建相应目录即可。
2. zoo.cfg中dataDir指定路径为Myid文件的路径。
Myid内容与:server.?=localhost:2888:3888 中你所设置?一致!
3.使用service iptables stop 关闭防火墙  #卡在这块
  使用service iptables status确认
4. 1,打开zkServer.sh 找到
status)
    STAT=`echo stat | nc localhost $(grep clientPort "$ZOOCFG" | sed -e ‘s/.*=//‘) 2> /dev/null| grep Mode`
在nc与localhost之间加上 -q 1 (是数字1而不是字母l)
如果已存在则去掉
5.2181端口被占用!      
zkServer.sh stop      
netstat -an | grep 2181 
clientPort = 2888       

以上是关于Zookeep启动异常:Error contacting service. It is probably not running.的主要内容,如果未能解决你的问题,请参考以下文章

查看zookeeper集群服务器启动状态报错“Error contacting service. It is probably not running.“

zookeeper启动时报Cannot open channel to X at election address Error contacting service. It is probably n

启动Zookeeper报错:Error contacting service. It is probably not running.

Zookeeper群起脚本启动失败及查看状态出现:Error contacting service. It is probably not running

启动zookeeper时,jps显示有进程,但是status查看状态时就Error contacting service. It is probably not running

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