HDFS清理坏块

作者: 明明德撩码 | 来源:发表于2018-03-03 07:34 被阅读318次

报错

Failed with exception java.io.IOException:org.apache.hadoop.hdfs.BlockMissingException: Could not obtain block: BP-1921057509-192.168.57.129-1517160177567:blk_1073741930_1106 file=/user/hive/warehouse/db_hive.db/student/student.txt
Time taken: 0.104 seconds
hive> eixt;
NoViableAltException(26@[])

image.png
  • hdfs检测
    检测命令:bin/hdfs fsck /


  • 清理坏块
    命令:bin/hdfs fsck / -delete
    命令说明:将丢失的块全部删除

  • 检测
    bin/hdfs fsck /


    health
  • hive测试


    success

相关文章

网友评论

    本文标题:HDFS清理坏块

    本文链接:https://www.haomeiwen.com/subject/ctxtfftx.html