Merge hbase regions:
hbase> merge_region 'ENCODED_REGIONNAME', 'ENCODED_REGIONNAME'
eg: hbase> merge_region 'fe67927487e12f311857e04dc9f28184','4243697eb282cc798e585b68de50e87b'
merge also makes the data locality as 1
Compactions
Compact all regions in a table called t1
hbase> major_compact 't1'
Compact an entire region called r1
hbase> major_compact 'r1'
Compact a single column family within a region called r1, where the column family is named c1
hbase> major_compact 'r1', 'c1'
Compact a single column family, c1, within a table, t1
hbase> major_compact 't1', 'c1'
0 Comments