今天在启动hadoop集群的时候发现两个namenode节点都没启动,然后去查启动日志的时候发现报错如下:

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

这种错误表示:该节点namenode元数据发生了损坏。需要恢复元数据以后,才能启动namenode

恢复方法如下:

1.进入hadoop目录下的bin目录

2.执行命令:hadoop namenode -recover

一路选择c 进行元数据的恢复.

然后执行stop-dfs.sh

再执行start-dfs.sh重新启动,这时再去jps查看,就可以看到两个namenode都启动了

namenode启动报错,There appears to be a gap in the edit log. We expected txid 54314, but got txid 54452.相关推荐

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

  2. hadoop 报错 there appears to be a gap in the edit log. we expected txitd 1, but got txid 14444

    hadoop 报错 there appears to be a gap in the edit log.  we expected txitd 1, but got txid 14444 原因: na ...

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

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

  4. namenode无法启动,There appears to be a gap in the edit log. We expected txid 10323, but got txid 10324.

    namenode进程中出现如下报错信息 There appears to be a gap in the edit log.  We expected txid 10323, but got txid ...

  5. 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命令没有 ...

  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 867311, but got txid 867402.

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

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

  9. 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! 我也是醉了!!

最新文章

  1. 基于SSH实现健康管理系统
  2. python逆转字符串封装_Python 实现文本操作之逆转字符串
  3. 工厂方法模式适用场景
  4. java开发展望怎么写_Java开发趋势:2019年展望
  5. 选择排序算法流程图_常用排序算法之选择排序
  6. 二十多岁不信,三十多岁却深信不疑的道理
  7. Win32 DLL和MFC DLL 中封装对话框
  8. 监督式学习、 非监督式学习、强化学习
  9. 利用UIScrollView和UIPageControl实现图片切换
  10. fuck-KUNLUN昆仑ECRS会员管理系统
  11. java商品类别如何与价格对应_java编写程序实现某超市商品查价功能。从键盘输入商品号,显示对应的商品价格,以“n”结束查询。...
  12. SVN刷新不及时,要手动操作
  13. 淘宝二面:说下二维码登录的原理?我懵了。。。
  14. Linux 查看CPU温度
  15. guge图标——ps
  16. EBS 报表开发:XML Publisher
  17. 算法竞赛入门经典-第五章错位输出
  18. CF1463-A. Dungeon
  19. Windows/Ubuntu双系统磁盘管理中删除Ubuntu分区后Ubuntu EFI分区无法删除卷解决办法
  20. ❤️UI自动化轻松解决微信手工群发消息的烦恼❤️

热门文章

  1. OSW工具-Oracle的OS watcher
  2. Android随机点名器,Excel基础知识-详解随机点名器
  3. Prometheus监控docker容器
  4. Java Web项目中使用Freemarker生成Word文档
  5. oracle omf管理,Oracle OMF文件管理
  6. Express响应方法
  7. C语言快速互转HEX(16进制)和原始字符串/数组
  8. 在vue2、vue3中基于Three.js使用多张全方位照片拼接全景vr效果
  9. [置顶] 【游戏产业的5年之变】
  10. MAC库乐队、APP残留清理