如果我想插入表格:
row | fam:qualifier | timestamp | value
1 | foo:bar | 12345 | 2
1 | foo:bar | 12346 | 3
1 | foo:bar | 12347 | 2
1 | foo:bar | 12348 | 1
.
.
.
1 | foo:bar | 123410 | 2
Run Code Online (Sandbox Code Playgroud)
我可以在hbase shell中指定获取特定行的最大版本数,但是当我指定实例'100'时它只返回4个版本......有没有最大值?
cod*_*Foo 14
它只返回4个版本,因为列族设置为最多存储4个版本.
如果要存储更多版本,则需要更改CF. 使用hbase shell:
hbase> alter 'table_foo', {NAME => 'column_fam_foo', VERSIONS => 100}
Run Code Online (Sandbox Code Playgroud)
最大版本的默认值为1*:
http://hbase.apache.org/book/schema.versions.html
*似乎最大版本的默认值在某些时候从3变为1.