HBASE手动触发major_compact

HBASE手动触发major_compact
1.定时执行脚本
#!/bin/bashsource /etc/profilesh ./hbase shell <<EOFmajor_compact table_nameEOF

语法: #Compact all regions in a table:hbase> major_compact t1 #Compact an entire region:hbase> major_compact r1 #Compact a single column family within a region:hbase> major_compact r1, c1 #Compact a single column family within a table:hbase> major_compact t1, c1 

推荐阅读