zookeeper启动异常Invalid config, exiting abnormally

今天启动zookeeper,但是发现启动不来,查看zookeeper.out日记如下:
2016-02-24 15:10:18,470 - INFO - Reading configuration from: /dp/zookeeper/bin/../conf/zoo.cfg
2016-02-24 15:10:18,481 - INFO - Defaulting to majority quorums
2016-02-24 15:10:18,490 - ERROR - Invalid config, exiting abnormally
org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing /dp/zookeeper/bin/../conf/zoo.cfg
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:121)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:106)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:79)
Caused by: java.lang.IllegalArgumentException: /dp/zookeeper_dataDir/myid file is missing
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:344)
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:117)
... 2 more
Invalid config, exiting abnormally
已邀请:

采菊篱下 - 无分享不快乐 助力技术开源分享 运维一枚

赞同来自: Ansible

这种情况一般都是因为你的snapshot file 目录下没有配置myid文件。

要回复问题请先登录注册