zookeeper无法启动 KeeperErrorCode = NoNode for

时间:2022-01-23 08:26:40

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