1. 程式人生 > >There appears to be a gap in the edit log. We expected txid 1, but got txid 16

There appears to be a gap in the edit log. We expected txid 1, but got txid 16

java.io.IOException: There appears to be a gap in the edit log.  We expected txid 1, but got txid 16.

namenode程序中出現如下報錯資訊

原因:namenode元資料被破壞,需要修復
解決:恢復一下namenode
hadoop namenode -recover
一路選擇c,一般就OK了