hbase table中VERSIONS、MIN_VERSIONS和TTL参数关系

1、VERSIONS

1)作用范围在单个column family上,
2)定义该column family内单行数据最多保留多少个版本,
3)多余的版本会在major compaction时候删除掉。
4)0.98版本之后,默认值1。

2、MIN_VERSIONS

1)作用范围在单个column family上,
2)定义该column family内单行数据最少保留多少个版本,即使数据过期了
3)而且该column family设置了TTL参数,MIN_VERSIONS参数才有效
4)默认值0,表示数据过期了,不保留任何历史版本的数据。

3、官方的原文解释

The minimum number of row versions parameter is used together with the time-to-live parameter
and can be combined with the number of row versions parameter to allow configurations
such as “keep the last T minutes worth of data, at most N versions, but keep at least M versions around”
(where M is the value for minimum number of row versions, M<N).
This parameter should only be set when time-to-live is enabled for a column family
and must be less than the number of row versions.

官方参考资料

schema version
hbase versions

此条目发表在hbase分类目录,贴了, , 标签。将固定链接加入收藏夹。

发表评论

邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据