HBase
  1. HBase
  2. HBASE-5599

[hbck] handle NO_VERSION_FILE and SHOULD_NOT_BE_DEPLOYED inconsistencies

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.90.6
    • Fix Version/s: 0.94.0, 0.95.0
    • Component/s: hbck
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The hbck tool can not fix the six scenarios.
      1. Version file does not exist in root dir.
      Fix: I try to create a version file by 'FSUtils.setVersion' method.

      2. [REGIONNAME][KEY] on HDFS, but not listed in META or deployed on any region server.
      Fix: I get region info form the hdfs file, this region info write to '.META.' table.

      3. [REGIONNAME][KEY] not in META, but deployed on [SERVERNAME]
      Fix: I get region info form the hdfs file, this region info write to '.META.' table.

      4. [REGIONNAME] should not be deployed according to META, but is deployed on [SERVERNAME]
      Fix: Close this region.

      5. First region should start with an empty key. You need to create a new region and regioninfo in HDFS to plug the hole.
      Fix: The region info is not in hdfs and .META., so it create a empty region for this error.

      6. There is a hole in the region chain between [KEY] and [KEY]. You need to create a new regioninfo and region dir in hdfs to plug the hole.
      Fix: The region info is not in hdfs and .META., so it create a empty region for this hole.

      1. 0.90-surefire-report-hbck.html
        204 kB
        fulin wang
      2. hbase-5599-0.90_v2.patch
        16 kB
        fulin wang
      3. hbase-5599-0.90_v3.patch
        15 kB
        fulin wang
      4. hbase-5599-0.90_v5.patch
        2 kB
        fulin wang
      5. hbase-5599-0.90_v6.patch
        8 kB
        fulin wang
      6. hbase-5599-0.90_v7.patch
        12 kB
        fulin wang
      7. hbase-5599-0.90_v8
        12 kB
        fulin wang
      8. hbase-5599-0.90.patch
        11 kB
        fulin wang
      9. hbase-5599-0.92_v5.patch
        3 kB
        fulin wang
      10. hbase-5599-0.94_v5.patch
        3 kB
        fulin wang
      11. hbase-5599-92-v8.patch
        12 kB
        Jonathan Hsieh
      12. hbase-5599-trunk_v5.patch
        3 kB
        fulin wang
      13. hbase-5599-trunk_v7.patch
        12 kB
        fulin wang
      14. hbase-5599-trunk_v8.patch
        12 kB
        fulin wang
      15. license.png
        234 kB
        Jonathan Hsieh

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              fulin wang
              Reporter:
              fulin wang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Development