HBASE手动触发major_compact


1.定时执行脚本
#!/bin/bash source /etc/profile sh ./hbase shell <<EOF major_compact 'table_name' EOF
语法:
 
#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' 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM