zookeeper无法启动 KeeperErrorCode = NoNode for

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/chunlongyuan/article/details/79258531

KeeperErrorCode = NoNode for

  • 查看zookeeper配置文件,得到dataDir的地址
[root@iZ25o9lq6f5Z ~]# cd /usr/local/zookeeper-3.3.6/
[root@iZ25o9lq6f5Z zookeeper-3.3.6]# cat conf/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.
dataDir=/tmp/zookeeper
# the port at which the clients will connect
clientPort=2181
  • 删除/tmp/zookeeper目录下的version-2文件夹
  • 然后启动zookeeper

猜你喜欢

转载自blog.csdn.net/chunlongyuan/article/details/79258531
今日推荐