洞察如何通过电子政务系统实现高效合规,助力企业数字化转型与创新管理
941
2022-09-15
Zookeeper学习笔记002---Windows下启动或关闭zookeeper_执行zkServer start/stop 抛异常
java.lang.NumberFormatException: For input string: "E:\zookeeper-3.5.4-beta\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:63)
at org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKeeperServerMain.java:103)
at org.apache.zookeeper.server.ZooKeeperServerMain.main(ZooKeeperServerMain.java:64)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:128)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:82)
2018-07-25 19:12:36,602 [myid:] - INFO [main:ZooKeeperServerMain@67] - Usage: ZooKeeperServerMain configfile | port datadir [ticktime] [maxcnxns]
Usage: ZooKeeperServerMain configfile | port datadir [ticktime] [maxcnxns]
E:\zookeeper-3.5.4-beta\bin>endlocal
用zkServer start命令报如题的错误,改为直接用zkServer启动则ok
还有在window下,myid文件不能是myid.txt,不能带文件格式
dataDir=D:/zookeeper-3.3.6/data这样是可以的
dataDir=D:\\ookeeper-3.3.6\\data这样是可以的
dataDir=D:\ookeeper-3.3.6\data这样是不行的
网上这么说的,但是,启动的时候是解决了,stop的时候,咋整
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~