zookeeper启动失败:【zkServer.sh status Error contacting service. It is probably not running】

简介: zookeeper启动失败:【zkServer.sh status Error contacting service. It is probably not running】

一、查找问题:

在前台显示问题:

zkServer.sh start-foreground

端口被占用:

46aabf46eec21c0df05e814aba12d1a7_70.png

二、执行netstat -alnp | grep 2181  查看被占用端口,执行kill -9 4840 杀死占用端口的进程 :

35082470f5c09a0016e40145b6b801b9_70.png

三、重启zookeeper:

e3f7cdba23d0f0f992e0055a970b778d_70.png


AIEarth是一个由众多领域内专家博主共同打造的学术平台,旨在建设一个拥抱智慧未来的学术殿堂!【平台地址:https://devpress.csdn.net/aiearth】 很高兴认识你!加入我们共同进步!

目录
相关文章
分布式系列教程(25) -解决Zookeeper启动失败的问题
分布式系列教程(25) -解决Zookeeper启动失败的问题
922 0
|
网络安全 开发工具
zookeeper解决Error contacting service. It is probably not running.
应用场景 安装了zookeeper集群之后,应用命令zkServer.sh start后,启动了zookeeper服务,用jps进程发现存在QuorumPeerMain进程,但是查看zookeeper状态的时候,发现报Error contacting service. It is probably not running.错误,提示服务并没有启动,那这是什么原因呢?原因可能有多种造成的,下面我们来分析一下。
29652 1
|
分布式计算 Hadoop
Zookeeper 启动失败【Cannot open channel to 3 at election address...】
解决Hadoop Zookeeper连接问题:检查Zookeeper目录权限,使用`sudo chown -R username:username /your_zookeeper_path`授权。确保`zoo.cfg`配置`quorumListenOnAllIPs=true`并监听所有IP。关键是机器ID(如`server.0`, `server.1`等)需与IP或主机名对应,修正`zoo.cfg`中的设置,例如`server.0=hadoop120:2888:3888`等。重启Zookeeper后,问题解决。
1136 0
【已解决】ZooKeeper配置中出现Error contacting service. It is probably not running
【已解决】ZooKeeper配置中出现Error contacting service. It is probably not running
1020 1
|
Java Linux 数据安全/隐私保护
成功解决ZooKeeper配置中出现Error contacting service. It is probably not running
成功解决ZooKeeper配置中出现Error contacting service. It is probably not running
|
Linux
关于ZooKeeper在Linux端启动失败的问题解决方案
关于ZooKeeper在Linux端启动失败的问题解决方案
893 0
关于ZooKeeper在Linux端启动失败的问题解决方案
查询zookeeper端口号,报 “stat is not executed because it is not in the whitelist.”
查询zookeeper端口号,报 “stat is not executed because it is not in the whitelist.”
748 0
|
12月前
|
消息中间件 分布式计算 资源调度
《聊聊分布式》ZooKeeper与ZAB协议:分布式协调的核心引擎
ZooKeeper是一个开源的分布式协调服务,基于ZAB协议实现数据一致性,提供分布式锁、配置管理、领导者选举等核心功能,具有高可用、强一致和简单易用的特点,广泛应用于Kafka、Hadoop等大型分布式系统中。
|
安全 应用服务中间件 API
微服务分布式系统架构之zookeeper与dubbo-2
微服务分布式系统架构之zookeeper与dubbo-2
|
负载均衡 Java 应用服务中间件
微服务分布式系统架构之zookeeper与dubbor-1
微服务分布式系统架构之zookeeper与dubbor-1

热门文章

最新文章