In HBase shell,how to scan the latest 5 data in a row?

3.9k Views Asked by At

My HBase table name is "recommend",I have inserted into 5 rows data.

Just like

put 'recommend','1','info:itemId',"1:1"
put 'recommend','1','info:itemId',"1:2"
put 'recommend','1','info:itemId',"1:3"
put 'recommend','1','info:itemId',"1:4" put 'recommend','1','info:itemId',"1:5"

When I use get 'recommend','1', {COLUMN => 'info:itemId', VERSIONS => 5} ,the result is not the latest 5 data from row 1 ! It's only one! Who can tell me what is problem or give me some tips? enter image description here

1

There are 1 best solutions below

0
On

I guess you can find right answer here. Probably you didn't specify versions number when created table. Default value is 1.