0

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

Chen.caijun
  • 104
  • 2
  • 11
  • 1
    In your `CREATE TABLE` command, did you specify the number of `VERSIONS` to store? or alternately, the `TTL` (time to live) for each version before deletiion? – Samson Scharfrichter Jul 01 '17 at 14:54
  • 1
    Try the `describe` command to know which settings are used. Cf. https://learnhbase.wordpress.com/2013/03/02/hbase-shell-commands/ for a quick recap of the shell commands (and basic CREATE options) – Samson Scharfrichter Jul 01 '17 at 14:56

1 Answers1

1

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

gorros
  • 1,411
  • 1
  • 18
  • 29