Are the following commands possible?
put 't1', 'r1', 'c1:q1', 'v1'
put 't1', 'r1', 'c1:q1', 'v2'
So, if I query 'r1' and 'c1:q1', I would like to get back both 'v1' and 'v2'. From my experiments so far, it seems it overwrites the value, instead of adding another value.
I have searched this and other sites but I haven't yet found a similar question. The closest I came to was Store multiple versions in hbase row with the same family: qualifier but different timestamps. but that is about adding through Java while mine is through shell.
You can alter the property of hbase table and can enable version.Here is a simple example.
alter 'Employee′, NAME => 'EmployeeInfo′, VERSIONS => 5
Here Employee is table name and EmployeeInfo is column family.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.