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' 

 

相关文章:

  • 2021-08-11
  • 2022-12-23
  • 2021-12-17
  • 2021-07-03
  • 2022-02-10
  • 2021-12-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-28
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
  • 2021-09-07
相关资源
相似解决方案