The current epoch, 79 is less than the accepted epoch, 5b

启动zookeeper的时候发现启动成功,但jps没有zookeeper进程

打开zookeeper.out文件发现日志报错

The current epoch, 79 is less than the accepted epoch, 5b

 

删除/export/servers/zookeeper-3.4.5-cdh5.14.0/zkdata/version-2就好了

 

然后重新启动就有了

如果有东西依赖zookeeper的话,比如hbase将数据存储在zookeeper中。所以应当将别的主机上相同的version-2拷贝过来就可以了

你可能感兴趣的:(ZooKeeper)