Help Center/ MapReduce Service/ FAQs/ Component Configurations/ How Do I Set the TTL for an HBase Table?
Updated on 2025-03-17 GMT+08:00
How Do I Set the TTL for an HBase Table?
- Set the time to live (TTL) when creating a table:
Create the t_task_log table, set the column family to f, and set the TTL to 86400 seconds.
create 't_task_log',{NAME => 'f', TTL=>'86400'} - Set the TTL for an existing table:
alter "t_task_log",NAME=>'data',TTL=>'86400' # Set the TTL value for the column family data.
Parent topic: Component Configurations
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.