修改hbase表的ttl

 

hbase(main):002:0> describe 'TraceV2'
Table TraceV2 is ENABLED
TraceV2
COLUMN FAMILIES DESCRIPTION
{NAME => 'S', BLOOMFILTER => 'ROW', VERSIONS => '1', IN_MEMORY => 'false', KEEP_DELETED_CELLS => 'FALSE', DATA_BLOCK_ENCODING => 'PREFIX', TTL => '5184000 SECONDS (60 DAYS)', COMPRESSION => 'NONE', MIN_VERSIONS => '0', BLOCKCACHE => 'tr
ue', BLOCKSIZE => '65536', REPLICATION_SCOPE => '0'}
1 row(s) in 0.1710 seconds

 

disable 'TraceV2'
alter 'TraceV2' , {NAME=>'S',TTL=>'2592000'} ##修改为30天
enable 'TraceV2'

posted @ 2019-07-29 10:01  slnngk  阅读(3059)  评论(0编辑  收藏  举报