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

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

内容简介: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参数关系》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

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

Data Structures and Algorithms with JavaScript

Data Structures and Algorithms with JavaScript

Michael McMillan / O'Reilly Media / 2014-2-22 / USD 28.51

If you’re using JavaScript on the server-side, you need to implement classic data structures that conventional object-oriented programs (such as C# and Java) provide. This practical book shows you how......一起来看看 《Data Structures and Algorithms with JavaScript》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具