现象问题

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。


Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐