HBase
  1. HBase
  2. HBASE-4009

Script to patch holes in .META. table

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: shell
    • Labels:
      None
    • Environment:

      CDH3U0

      Description

      I need a script to patch holes in the .META. table, which was corrupted by earlier issue on the cluster.

      1. patch_meta.rb
        5 kB
        Lars George
      2. add_empty_region.rb
        4 kB
        Lars George

        Issue Links

          Activity

          Lars George created issue -
          Hide
          Lars George added a comment -

          This script is based on check_meta.rb, but instead of "mounting" existing region directories where the holes are, it simply creates an empty region spanning the hole.

          Show
          Lars George added a comment - This script is based on check_meta.rb, but instead of "mounting" existing region directories where the holes are, it simply creates an empty region spanning the hole.
          Lars George made changes -
          Field Original Value New Value
          Attachment patch_meta.rb [ 12483181 ]
          Jonathan Hsieh made changes -
          Link This issue is related to HBASE-4122 [ HBASE-4122 ]
          Hide
          Lars George added a comment -

          Adds an empty region at a given start and end key.

          Show
          Lars George added a comment - Adds an empty region at a given start and end key.
          Lars George made changes -
          Attachment add_empty_region.rb [ 12508668 ]
          Hide
          Todd Lipcon added a comment -

          I don't htink we should be committing any more rb scripts like this to the source code - they just get people into trouble, fall out of date, etc. Instead this should be an hbck feature that automatically patches holes in a table if requested

          Show
          Todd Lipcon added a comment - I don't htink we should be committing any more rb scripts like this to the source code - they just get people into trouble, fall out of date, etc. Instead this should be an hbck feature that automatically patches holes in a table if requested
          Hide
          Lars George added a comment -

          Big +1, this issue here is only to be able to share those scripts until we have this all covered in hbck. Should we close it anyways as won't fix?

          Show
          Lars George added a comment - Big +1, this issue here is only to be able to share those scripts until we have this all covered in hbck. Should we close it anyways as won't fix?
          Hide
          Lars Hofhansl added a comment -

          These features are in HBCK now, right?

          Show
          Lars Hofhansl added a comment - These features are in HBCK now, right?
          Hide
          Jonathan Hsieh added a comment -

          The functionality of this script has been subsumed by hbck in 0.92.1, 0.94.0, trunk and will be in 0.90.7.

          Show
          Jonathan Hsieh added a comment - The functionality of this script has been subsumed by hbck in 0.92.1, 0.94.0, trunk and will be in 0.90.7.
          Jonathan Hsieh made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Won't Fix [ 2 ]
          Jonathan Hsieh made changes -
          Assignee Jonathan Hsieh [ jmhsieh ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          438d 1h 45m 1 Jonathan Hsieh 31/Aug/12 20:32

            People

            • Assignee:
              Jonathan Hsieh
              Reporter:
              Lars George
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development