ColumnFamilies can set a TTL (Time To Live) length in seconds, and HBase will automatically delete rows once the expiration time is reached. This applies to all versions of a row - even the current one. The TTL time encoded in the HBase for the row is specified in UTC.
To configure a table with a TTL of 60 seconds for instance, open
hbase shell:create 'tabletest', {'NAME' => 'cf', 'TTL' => 60}
0 nhận xét:
Đăng nhận xét