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

Posted 大数据从业者

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java.io.IOException: There appears to be a gap in the edit log. We expected txid ***, but got txid(示相关的知识,希望对你有一定的参考价值。

方式1

原因:namenode元数据被破坏,需要修复
解决:恢复一下namenode

hadoop namenode -recover


一路选择Y,一般就OK了

方式2

Need to copy the edits file to the journal node (I have 3 journal node s101 s102 s103)

[[email protected] /home/centos/hadoop/ha/dfs/name1/current]$scp edits_0000000000000000041-0000000000000000043 [email protected]:/home/centos/hadoop/ha/dfs/journal/mycluster/current


[[email protected] /home/centos/hadoop/ha/dfs/name1/current]$scp edits_0000000000000000041-0000000000000000043 [email protected]:/home/centos/hadoop/ha/dfs/journal/mycluster/current

[[email protected] /home/centos/hadoop/ha/dfs/name1/current]$scp edits_0000000000000000041-0000000000000000043 [email protected]:/home/centos/hadoop/ha/dfs/journal/mycluster/current

[[email protected] /home/centos/hadoop/ha/dfs/name1/current]$hdfs zkfc -formatZK

https://blog.csdn.net/u011478909/article/details/51864071

https://blog.csdn.net/wqhaber/article/details/77529049



以上是关于java.io.IOException: There appears to be a gap in the edit log. We expected txid ***, but got txid(示的主要内容,如果未能解决你的问题,请参考以下文章

java.io.IOException: toDerInputStream 拒绝标签类型 77

java.io.IOException:系统找不到指定的路径

java.io.IOException: Connection reset by peer和java.io.IOException: Connection timed out。Socket

android java.io.IOException:传输端点未连接

任务 ':app:compileDebugKotlin' java.io.IOException 执行失败

火花:java.io.IOException:设备上没有剩余空间[再次!]