belostoky
belostoky

Reputation: 974

Changing startKey and endKey of region servers of an existing table without deleting it?

Is there a way to change the start-key & end-key of region-servers in an existing HBase table.
Through hbase shell or any other way?
thanks

Upvotes: 0

Views: 1016

Answers (2)

Abdelali AHBIB
Abdelali AHBIB

Reputation: 602

Region 1 : A -> B

Region 2 : C -> D

If you want for example to change Region 2 Start-key and end-key, You can merge it with the region 1 then split the result region :

merge_region 'region1_encoded_id’,'region2_encoded_id’
split ‘region1Name’
balancer

if region name is like : myHTable,,1414702482831.13e9520e27a1f282e1da7f0779a89e08. your region_encoded_id will be : 13e9520e27a1f282e1da7f0779a89e08

Upvotes: 1

th30z
th30z

Reputation: 1942

no there is nothing to edit the range of region, but you can use split and merge to end up with the result that you want.

Upvotes: 0

Related Questions