The built-in HBase data table of the HDP cluster timeline continues to grow, and we changed the default TTL30 to 7 days.
timeline v2.0 in the ambari interface YARN service
timeline built-in HBase data HDFS path:
The size of the table on HDFS
Use the following command to enter the Hbase shell
[hdfs@winner-backup-hdp root]$ hbase --config /etc/hadoop/3.1.4.0-315/0/embedded-yarn-ats-hbase shell
desc 'table name', you can see the TTL time of the table
Modify the TTL time to 7 days
disable '表名'
alter '表名',NAME => '列簇', TTL => 604800
alter '表名',NAME => '列簇', TTL => 604800
enable '表名'
After the modification, the data file will not be reduced immediately, and a major compaction will be triggered. After a period of time, the data file will be reduced. Operate with caution
major_compact '表名'
————————————————
Copyright statement: This article is the original article of CSDN blogger "Driving a tractor home", following the CC 4.0 BY-SA copyright agreement, please attach the original source for reprinting link and this statement.
Original link: https://blog.csdn.net/qq_35995514/article/details/128136983