zookeeper伪集群启动失败失败:Invalid config, exiting abnormally

zookeeper 启动失败,查看启动日志 :

2017-09-03 22:33:14,024 [myid:] - ERROR [main:QuorumPeerMain@85] - Invalid config, exiting abnormally
org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing /usr/service/zookeeper/zookeeper-3.4.9.1/zookeeper-3.4.9/bin/../conf/zoo.cfg
 at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.Java:144)
 at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:101)
 at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)
Caused by: java.lang.NumberFormatException: For input string: "2183 "
 at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
 at java.lang.Integer.parseInt(Integer.java:580)
 at java.lang.Integer.parseInt(Integer.java:615)
 at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:214)
 at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:140)
 ... 2 more


发现zookeeper的配置文件出现异常,查看配置,发现在第二个服务端口号后多了几个空格(可能是直接复制配置文件的时候),导致zookeeper在解析端口号的时候出现异常,




你可能感兴趣的:(zookeeper)