Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-24919

A tool to rewrite corrupted HFiles

    XMLWordPrintableJSON

Details

    • Brainstorming
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • hbase-operator-tools
    • None

    Description

      Typically I have been dealing with corrupted HFiles (due to loss of hdfs blocks) by just removing them. However, It always seemed wasteful to throw away the entire HFile (which can be hundreds of gigabytes), just because one hdfs block is missing (128MB).

      I think there's a possibility for a tool that can rewrite an HFile by skipping corrupted blocks.

      There can be multiple types of issues with hdfs blocks but any of them can be treated as if the block doesn't exist:
      1. All the replicas can be lost
      2. The block can be corrupted due to some bug in hdfs (I've recently run into HDFS-15186 by experimenting with EC).

      At the simplest the tool can be a local mapreduce job (mapper only) with a custom HFile reader input that can seek to next DATABLK to skip corrupted hdfs blocks.

      Attachments

        Activity

          People

            Unassigned Unassigned
            timoha Andrey Elenskiy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: