zookeeper 3.4.6启动抛出 Invalid arguments, exiting abnormally java.lang.NumberFormatException 异常
现象问题windows环境下安装zookeeper3.4.6,用配置文件模板zoo_sample.cfg修改成配置文件zoo.cfg,内容代码如下:# The number of milliseconds of each ticktickTime=2000# The number of ticks that the initial# synchronization phase ca
·
现象问题
windows环境下安装zookeeper3.4.6,用配置文件模板zoo_sample.cfg修改成配置文件zoo.cfg,内容代码如下:
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
dataDir=C:/zookeeper/tmp/data
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1
用zkServer.cmd start 抛出Invalid arguments, exiting abnormally java.lang.NumberFormatException 异常,
解决办法:
启动时,改用zkServer.cmd启动,不带参数 start。
更多推荐
已为社区贡献1条内容
所有评论(0)