原文链接:
报错:hadoop There appears to be a gap in the edit log. We expected txid 927, but got txid 1265.
Hadoop2.6.4 datanode 无法启动,错误:All specified directories are failed to load.
NameNode 启动失败 - There appears to be a gap in the edit log. We expected txid xxx, but got tx
报错原因
上面日志提示 We expected txid 927, but got txid 1265 也就是Namenode想要获取927这个edit,但是获取到的是1265,查看 jn 目录下,发现的确只有1265 即:edits_0000000000000001265-0000000000000001265
报错解决
(1)方法一:命令