ZooKeeper启动错误 Invalid arguments, exiting abnormally 解决方案 Windows
使用bin中的脚本 zkServer.cmd 启动zookeeper,输入命令D:\WORK\Project-Test\zookeeper-3.4.11\bin>zkServer.cmd start发现无法启动,出现如下错误2018-01-29 19:37:33,793 [myid:] - ERROR [main:ZooKeeperServerMain@57] - Invalid
·
使用bin中的脚本 zkServer.cmd 启动zookeeper,输入命令
D:\WORK\Project-Test\zookeeper-3.4.11\bin>zkServer.cmd start
发现无法启动,出现如下错误
2018-01-29 19:37:33,793 [myid:] - ERROR [main:ZooKeeperServerMain@57] - Invalid arguments, exiting abnormally
java.lang.NumberFormatException: For input string: "D:\WORK\Project-Test\zookeeper-3.4.11\bin\..\conf\zoo.cfg"
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.ServerConfig.parse(ServerConfig.java:61)
at org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKeeperServerMain.java:86)
at org.apache.zookeeper.server.ZooKeeperServerMain.main(ZooKeeperServerMain.java:55)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:119)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:81)
原因: 用法不对,start是在linux下用.sh脚本时的命令,在win下直接打脚本名就好
D:\WORK\Project-Test\zookeeper-3.4.11\bin>zkServer.cmd
更多推荐
已为社区贡献1条内容
所有评论(0)