hbase management tool

split split
merge_region merge partition

 

flush 
will force the data in memstore to write to disk
 hbase> flush 'TABLENAME'
 hbase> flush 'REGIONNAME'
 hbase> flush 'ENCODE_REGIONNAME'


move
moves the region to a specified region server, or to a random region server (without specifying a region server). This command can be used to solve the problem that some region servers are too congested.
 hbase> move 'ENCODE_REGIONNAME'
 hbase> move 'ENCODE_REGIONNAME', 'SERVER_NAME,PORT,START_CODE'    
 
 move '353a385f28af52ed47e675f18242bbf8', 'centos2,16020,1491104480825'The 
 start code of the target server can be found by scan 'hbase:meta', or Find it with http://centos3:16030/rs-status , or with the command status 'simple'


close_region  (for experts only)
关闭单个region,使其offline
 hbase> close_region 'REGIONNAME'
 hbase> close_region 'REGIONNAME', 'SERVER_NAME'
 hbase> close_region 'ENCODED_REGIONNAME'
 hbase> close_region 'ENCODED_REGIONNAME', 'SERVER_NAME'

 Use assign to reopen/reassign.  Use unassign or move to assign the region elsewhere on cluster.
 
 
assign  (for experts only)
Assign a region. Use with caution. If region already assigned, this command will do a force reassign. For experts only.
 hbase> assign 'REGIONNAME'
 hbase> assign 'ENCODED_REGIONNAME'


unassign   (for experts only)
Unassign a region. Unassign will close region in current location and then reopen it again.  Pass 'true' to force the unassignment ('force' will clear all in-memory state in master before the reassign. If results in double assignment use hbck -fix to resolve. To be used by experts). Use with caution.  For expert use only.  Examples:
 hbase> unassign 'REGIONNAME'
 hbase> unassign 'REGIONNAME', true
 hbase> unassign 'ENCODED_REGIONNAME'
 hbase> unassign 'ENCODED_REGIONNAME', true


balancer_switch
balancer
balancer_switch controls whether to enable the region's load balancing algorithm. If the load balancing algorithm is enabled, the balance can actively run the load balancing algorithm to redistribute the regions on the region server evenly.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326391488&siteId=291194637