方式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)

[centos@s100 /home/centos/hadoop/ha/dfs/name1/current]$scp edits_0000000000000000041-0000000000000000043 centos@s101:/home/centos/hadoop/ha/dfs/journal/mycluster/current[centos@s100 /home/centos/hadoop/ha/dfs/name1/current]$scp edits_0000000000000000041-0000000000000000043 centos@s102:/home/centos/hadoop/ha/dfs/journal/mycluster/current[centos@s100 /home/centos/hadoop/ha/dfs/name1/current]$scp edits_0000000000000000041-0000000000000000043 centos@s103:/home/centos/hadoop/ha/dfs/journal/mycluster/current[centos@s100 /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

转载于:https://www.cnblogs.com/felixzh/p/9881036.html

java.io.IOException: There appears to be a gap in the edit log. We expected txid ***, but got txid相关推荐

  1. namenode节点起不来java.io.IOException: There appears to be a gap in the edit log. We expected txid 1, bu

    解决方法 原因:namenode元数据被破坏,需要修复 解决:恢复一下namenode hadoop namenode -recover 问题描述: 启动namenode时 没有反应并且jps命令没有 ...

  2. hadoop 报错 java.io.IOException: There appears to be a gap in the edit log. We expected txid 1, but g

    原因: namenode元数据被破坏,需要修复 解决: 恢复一下namenodehadoop namenode –recover选择Y选择c ok! 我也是醉了!!

  3. hadoop错误:java.io.IOException: There appears to be a gap in the edit log. We expected txid 1

    打开集群时发现没有出现NameNode节点,查找日志发现这个错误 解决方案:恢复namenode hadoop namenode -recover 后续选择y 选择c

  4. hdfs问题1:java.io.IOException:There appears to be a gap in the edit log.We expected txid 1,but got txi

    这种错误表示:该节点namenode元数据发生了损坏.需要恢复元数据以后,才能启动namenode 解决:恢复一下namenode cd $HADOOP_HOME/bin hadoop namenod ...

  5. NameNode 启动失败 - There appears to be a gap in the edit log. We expected txid xxx, but got tx

    场景 NameNode迁移,导致一个节点无法启动 异常 在Namenode主动迁移,或者Namenode机器挂掉无法恢复时,我们需要Namenode节点迁移,迁移经常会出现一个NameNode启动成功 ...

  6. 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 ...

  7. There appears to be a gap in the edit log. We expected txid 2289, but got txid 2859.

    错误信息: 2016-09-20 11:48:52,409 WARN org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Encountered ...

  8. There appears to be a gap in the edit log. We expected txid 867311, but got txid 867402.

    项目场景: 集群断电之后重启集群,namenode启动失败,去hadoop安装目录差看日志 /hadoop/logs 发现There appears to be a gap in the edit l ...

  9. namenode启动报错:There appears to be a gap in the edit log. We expected txid 1, but got txid 16

    在启动standy节点的namenode时,出现了There appears to be a gap in the edit log. We expected txid 1, but got txid ...

最新文章

  1. 关于 synchronizeOnSession
  2. [20180403]访问dba_autotask_task无输出问题.txt
  3. python格式化代码工具_python 代码格式化工具:YAPF
  4. 淘宝商品库MySQL优化实践的学习
  5. Maven的pom.xml文件详解------Build Settings
  6. 能让你成为更优秀程序员的10个C语言资源
  7. matlab混叠现象与频率分辨率,连续时间信号频谱分析研究及MATLAB实现
  8. android程序中关于webview加载html文件
  9. PLSQL_动态语句的解析(概念)
  10. 管理Kubernetes集群时需要关注的关键指标
  11. AD快捷键及常用操作
  12. python做服务器有优缺点_python做服务器优劣
  13. 计算机windows用户名密码怎么查,如何查看Windows和Office的密码、序列号
  14. Android CPU 深度睡眠,什么是CPU更深度睡眠
  15. keras之权重初始化
  16. redis 运维讲解01
  17. SRS(简单实时视频服务) 笔记(5)- 视频录制
  18. 自动充值平台开发进程之联通卡密一最终实现
  19. 转载给浮躁的软件业同仁 (作者不是我,但是确实是好文)
  20. 一、SpringMVC基础入门,创建一个HelloWorld程序

热门文章

  1. 软件工程基于场景建模 习题
  2. oswatch的安装和使用
  3. dfs 访问拒绝_DFS文件夹无法访问
  4. HTML中字体和字体图标的应用
  5. Azkban上传文件报错installation Failed.Error chunking
  6. html怎么画正方形的斜线,html – 斜线的样式
  7. 某cpws - ciphertext加密与数据解密
  8. python-urllib3
  9. uniapp中,H5端使用html2canvas生成海报
  10. RL(Chapter 6): Windy Gridworld