Note
This parameter is available starting with V4.4.2.
Description
enable_hbase_rowkey_ttl specifies whether to enable the Rowkey TTL feature in OBKV-HBase. After you enable this feature, the system marks expired Rowkeys during queries and periodically cleans up expired columns and multi-version data of these Rowkeys in the background. After you disable this feature, even if you have enabled the enable_kv_ttl parameter, only the Normal TTL takes effect, and the Rowkey does not have the capability to be deleted after expiration.
Privilege requirements
Query the parameter
You can query this parameter in the
systenant and all user tenants by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
You can modify this parameter in the
systenant and user tenants.
Attributes
Attribute |
Description |
|---|---|
| Type | Boolean |
| Default value | False |
| Value range |
|
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Examples
Enable the Rowkey TTL feature:
obclient> ALTER SYSTEM SET enable_hbase_rowkey_ttl = true;
