工作中需要修改已经使用表的TTL,遇到了一些问题,做下记录
首先,进入hbase shell
1.disable表是必须的
disable 'table'
2.输入alter 'table',shell弹出一堆提示
Here is some help for this command:
Alter column family schema; pass table name and a dictionary
specifying new column family schema. Dictionaries are described
on the main help command output. Dictionary must include name
of column family to alter. For example,
To change or add the 'f1' column family in table 't1' from defaults
to instead keep a maximum of 5 cell VERSIONS, do:
hbase> alter 't1', NAME => 'f1', VERSIONS => 5
To delete the 'f1' column family in table 't1', do:
hbase> alter 't1', NAME => 'f1', METHOD => 'delete'
or a shorter version:
hbase> alter 't1', 'dele