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

[RSGROUP] Add shell command to move servers and tables at the same time

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: rsgroup
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Currently add a new group perform the following steps:

      hbase(main):001:0> add_rsgroup 'mygroup'
      Took 0.3840 seconds
      hbase(main):002:0> move_servers_rsgroup 'mygroup',['hbase-rs-01:16030','hbase-rs-02:16030']
      Took 3.5040 seconds
      hbase(main):003:0> move_tables_rsgroup 'mygroup',['example']
      Took 0.2710 seconds
      

      1. move_servers_rsgroup will unassign all regions on hbase-rs-01 and hbase-rs-02
      2. move_tables_rsgroup will also reassign all the regions of the table example.

      This will lead to a large number of regions to migrate and affect the data locality.

      However, some regions of the table that are distributed on hbase-rs-01 and hbase-rs-02, do not need to be moved.

      So,we need a new shell command move_servers_tables_rsgroup which minimizes the number of regions needed to move.

        Attachments

        1. HBASE-17758-v1.patch
          104 kB
          Guangxu Cheng
        2. HBASE-17758-v2.patch
          104 kB
          Guangxu Cheng
        3. HBASE-17758-v3.patch
          107 kB
          Guangxu Cheng
        4. HBASE-17758-v4.patch
          111 kB
          Guangxu Cheng
        5. HBASE-17758-v5.patch
          111 kB
          Guangxu Cheng

          Issue Links

            Activity

              People

              • Assignee:
                gxcheng Guangxu Cheng
                Reporter:
                gxcheng Guangxu Cheng
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: