当前位置:   article > 正文

There are 4 missing blocks. The following files may be corrupted_there are 8 missing blocks. the following files ma

there are 8 missing blocks. the following files may be corrupted:

There are 4 missing blocks. The following files may be corrupted

Please check the logs or run fsck in order to identify the missing blocks. See the Hadoop FAQ for common causes and potential solutions.

步骤1,检查文件缺失情况
hadoop fsck /tmp/logs/root/logs-tfile/ | grep parquet

可以看到

  1. blk_1073755509 /spark-history/application_1703488625044_0273_1
  2. blk_1073758750 /tmp/logs/root/logs-tfile/application_1703488625044_0273/hadoop03_37847
  3. blk_1073758751 /tmp/logs/root/logs-tfile/application_1703488625044_0273/hadoop02_41829
  4. blk_1073758752 /tmp/logs/root/logs-tfile/application_1703488625044_0353/hadoop03_37847

确实各自都丢失了1个Block, 文件已经损坏,不可恢复。

步骤2,删除缺失文件

因为我的环境为测试环境,可删除缺失文件,生产环境还需要斟酌判断。

  1. hdfs fsck -delete /spark-history/application_1703488625044_0273_1
  2. hdfs fsck -delete /tmp/logs/root/logs-tfile/application_1703488625044_0273/hadoop03_37847
  3. hdfs fsck -delete /tmp/logs/root/logs-tfile/application_1703488625044_0273/hadoop02_41829
  4. hdfs fsck -delete /tmp/logs/root/logs-tfile/application_1703488625044_0353/hadoop03_37847
步骤3, 检查集群健康状况

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/632809
推荐阅读
相关标签
  

闽ICP备14008679号