初次下载安装zookeeper报错 ERROR [main:QuorumPeerMain@89] - Invalid config, exiting abnormally
错误信息通常如下:2019-05-15 10:38:08,843 [myid:] - INFO [main:QuorumPeerConfig@130] - Reading configuration from: D:\zheng_start\zookeeper-3.5.4-beta\bin\..\conf\zoo.cfg2019-05-15 10:38:08,846 [myid:] - E...
错误信息通常如下:
2019-05-15 10:38:08,843 [myid:] - INFO [main:QuorumPeerConfig@130] - Reading configuration from: D:\zheng_start\zookeeper-3.5.4-beta\bin\..\conf\zoo.cfg
2019-05-15 10:38:08,846 [myid:] - ERROR [main:QuorumPeerMain@89] - Invalid config, exiting abnormally
org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing D:\zheng_start\zookeeper-3.5.4-beta\bin\..\conf\zoo.cfg
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:151)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:113)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:82)
Caused by: java.lang.IllegalArgumentException: D:\zheng_start\zookeeper-3.5.4-beta\bin\..\conf\zoo.cfg file is missing
at org.apache.zookeeper.server.util.VerifyingFileFactory.doFailForNonExistingPath(VerifyingFileFactory.java:51)
at org.apache.zookeeper.server.util.VerifyingFileFactory.validate(VerifyingFileFactory.java:45)
at org.apache.zookeeper.server.util.VerifyingFileFactory.create(VerifyingFileFactory.java:40)
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:136)
... 2 more
Invalid config, exiting abnormally
D:\zheng_start\zookeeper-3.5.4-beta\bin>endlocal
原因:D:\zheng_start\zookeeper-3.5.4-beta\bin\..\conf\zoo.cfg 目录下配置信息不存在。
解决办法:
1、使用默认文件:将conf文件夹中zoo_sample.cfg文件夹名称修改为zoo.cfg;
2、或者自定义修改配置后,conf文件夹中存放zoo.cfg文件。
更多推荐
所有评论(0)