zookeeper启动后没有相关进程

本文涉及的产品
注册配置 MSE Nacos/ZooKeeper,118元/月
服务治理 MSE Sentinel/OpenSergo,Agent数量 不受限
云原生网关 MSE Higress,422元/月
简介: 查看状态报错,报错,百度硕士nc问题,让看.out文件,但是这哥文件是空的,那就看log 016-12-15 14:08:19,355 [myid:] - INFO [main:QuorumPeer$QuorumServer@149] - Resolved hostname: StandByNameNode to address: StandByNameNode/192.

查看状态报错,报错,百度硕士nc问题,让看.out文件,但是这哥文件是空的,那就看log

016-12-15 14:08:19,355 [myid:] - INFO  [main:QuorumPeer$QuorumServer@149] - Resolved hostname: StandByNameNode to address: StandByNameNode/192.168.58.183
2016-12-15 14:08:19,356 [myid:] - INFO  [main:QuorumPeer$QuorumServer@149] - Resolved hostname: CentOSMaster to address: CentOSMaster/192.168.58.180
2016-12-15 14:08:19,356 [myid:] - INFO  [main:QuorumPeerConfig@352] - Defaulting to majority quorums
2016-12-15 14:08:19,362 [myid:0] - INFO  [main:DatadirCleanupManager@78] - autopurge.snapRetainCount set to 3
2016-12-15 14:08:19,362 [myid:0] - INFO  [main:DatadirCleanupManager@79] - autopurge.purgeInterval set to 0
2016-12-15 14:08:19,362 [myid:0] - INFO  [main:DatadirCleanupManager@101] - Purge task is not scheduled.
2016-12-15 14:08:19,385 [myid:0] - INFO  [main:QuorumPeerMain@127] - Starting quorum peer
2016-12-15 14:08:19,398 [myid:0] - INFO  [main:NIOServerCnxnFactory@89] - binding to port 0.0.0.0/0.0.0.0:2181
2016-12-15 14:08:19,406 [myid:0] - INFO  [main:QuorumPeer@1019] - tickTime set to 2000
2016-12-15 14:08:19,407 [myid:0] - INFO  [main:QuorumPeer@1039] - minSessionTimeout set to -1
2016-12-15 14:08:19,407 [myid:0] - INFO  [main:QuorumPeer@1050] - maxSessionTimeout set to -1
2016-12-15 14:08:19,408 [myid:0] - INFO  [main:QuorumPeer@1065] - initLimit set to 10
2016-12-15 14:08:19,423 [myid:0] - ERROR [main:QuorumPeer@231] - Setting LearnerType to PARTICIPANT but 0 not in QuorumPeers. 
2016-12-15 14:08:19,428 [myid:0] - INFO  [main:FileSnap@83] - Reading snapshot /home/hxsyl/Spark_Relvant/zookeeper/version-2/snapshot.1400000002
2016-12-15 14:08:19,464 [myid:0] - ERROR [main:QuorumPeerMain@89] - Unexpected exception, exiting abnormally
java.lang.RuntimeException: My id 0 not in the peer list
	at org.apache.zookeeper.server.quorum.QuorumPeer.startLeaderElection(QuorumPeer.java:583)
	at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:502)
	at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:153)
	at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:111)
	at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)

  查看信息发现时myid0,我记得是1啊,所以改了吧,fuck,到现在才发现。发现其他节点的myid也是0,咋回事,以前没问题的,一一改吧

相关实践学习
基于MSE实现微服务的全链路灰度
通过本场景的实验操作,您将了解并实现在线业务的微服务全链路灰度能力。
目录
相关文章
|
Java 大数据
解决ZooKeeper实验进程协作中的一些问题
大数据的学习总是伴随很多问题,服务端总会抛出一些异常,我们需要做到的就是学会去解决这些问题,以后再出现也能更加从容面对。
136 0
解决ZooKeeper实验进程协作中的一些问题
|
监控 Java 大数据
大数据编程技术基础实验六:ZooKeeper实验——进程协作
大数据基础实验六,使用ZooKeeper了解并实践进程协作的操作。
226 0
大数据编程技术基础实验六:ZooKeeper实验——进程协作
|
3月前
|
安全 应用服务中间件 API
微服务分布式系统架构之zookeeper与dubbo-2
微服务分布式系统架构之zookeeper与dubbo-2
|
3月前
|
负载均衡 Java 应用服务中间件
微服务分布式系统架构之zookeeper与dubbor-1
微服务分布式系统架构之zookeeper与dubbor-1
|
3月前
|
存储 负载均衡 Dubbo
分布式-Zookeeper(一)
分布式-Zookeeper(一)
|
5月前
|
监控 NoSQL Java
分布式锁实现原理问题之ZooKeeper的观察器(Watcher)特点问题如何解决
分布式锁实现原理问题之ZooKeeper的观察器(Watcher)特点问题如何解决
|
2月前
|
分布式计算 NoSQL Java
Hadoop-32 ZooKeeper 分布式锁问题 分布式锁Java实现 附带案例和实现思路代码
Hadoop-32 ZooKeeper 分布式锁问题 分布式锁Java实现 附带案例和实现思路代码
46 2
|
2月前
|
分布式计算 Hadoop
Hadoop-27 ZooKeeper集群 集群配置启动 3台云服务器 myid集群 zoo.cfg多节点配置 分布式协调框架 Leader Follower Observer
Hadoop-27 ZooKeeper集群 集群配置启动 3台云服务器 myid集群 zoo.cfg多节点配置 分布式协调框架 Leader Follower Observer
50 1