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

栏目: 数据库 · 发布时间: 6年前

内容简介:1)作用范围在单个column family上,2)定义该column family内单行数据最多保留多少个版本,3)多余的版本会在major compaction时候删除掉。

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

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.

官方参考资料


以上所述就是小编给大家介绍的《hbase table中VERSIONS、MIN_VERSIONS和TTL参数关系》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Programming the Mobile Web

Programming the Mobile Web

Maximiliano Firtman / O'Reilly Media / 2010-07-23 / $44.99

* Learn how to use your existing skills to move into mobile web development * Discover the new possibilities of mobile web development, and understand its limitations * Get detailed coverage of ......一起来看看 《Programming the Mobile Web》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具