Hbase - how to move a region from one Region server to another

+++++++++++++++++++++++++++++++++++++++++++
How to move a region from 1 RS to another Region server:-
+++++++++++++++++++++++++++++++++++++++++++

Example:-

In the Hbase master WebUI -> http://test:16010/table.jsp?name=TestTable

Tablename : TestTable

Sample Output(1 region):-

Name Region Server Start Key End Key Locality Requests
TestTable,00000000000000000000262648,1527980239389.b7becd909ed767e0678c0cf941f88470. test4.openstacklocal:16020 00000000000000000000262648 0000000000000000000052533 0.5169431 0


Table regions -- >  TestTable,00000000000000000000262648,1527980239389.b7becd909ed767e0678c0cf941f88470.

Actual region name --> "b7becd909ed767e0678c0cf941f88470"


Command to move in "hbase shell":-

Once the region name is identified follow this command to move

hbase(main):003:0> move 'b7becd909ed767e0678c0cf941f88470','test1.openstacklocal,16020'
0 row(s) in 0.6940 seconds

Here I have re-assigned the region from "test4.openstacklocal:16020" to "test1.openstacklocal,16020"


You can refresh the master UI page and see if this got reflected.


No comments:

Post a Comment

Boost Your Download Speed with lftp Segmentation

Looking for a faster way to download files via sftp to a Linux machine? Try using "lftp" instead. This tool offers segmented downl...

Other relevant topics