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

Posted 伊米伊念

tags:

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

./zkServer.sh start启动成功,并且使用jps能看zookeeper的进程。

./zkServer.sh status缺报错,Error contacting service. It is probably not running.

好多地方说和防火墙有关系

我的解决办法是先看一下2181是否被占用,如果没有被占用查看8080端口是否会占用

zookeeper有一个内嵌的管理控制台是通过jetty启动,会占用8080端口

通过查看zookeeper的官方文档,发现有3种解决途径:

(1).删除jetty。

(2)修改端口。

修改方法的方法有两种,一种是在启动脚本中增加 -Dzookeeper.admin.serverPort=你的端口号.一种是在zoo.cfg中增加admin.serverPort=没有被占用的端口号

(3)停用这个服务,在启动脚本中增加"-Dzookeeper.admin.enableServer=false"

 

参考文档:https://zhidao.baidu.com/question/1822430523138265268.html

以上是关于zookeeper错误Error contacting service. It is probably not running.的主要内容,如果未能解决你的问题,请参考以下文章

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

Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn)

Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn)

启动 Zookeeper 集群。错误:无法找到或加载主类 org.apache.zookeeper.server.quorum.QuorumPeerMain

异常ERROR: Can't get master address from ZooKeeper; znode data == null

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