Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get multiple versions from one specific row and column in HBase

Tags:

hbase

As we know, hbase has a feature that a specific Row and specific Column can record recent change values by timestamps. So my question is, HOW TO list all the changed values using any HBase command? I googled a lot, but didn't find any useful links.

like image 978
mlzboy Avatar asked Dec 11 '11 17:12

mlzboy


1 Answers

The same can be achieved in hbase shell using:

get 'tablename', 'rowid', {COLUMN => 'cf:info', VERSIONS => 3}

The above will show the max 3 versions of the cell, if available.

like image 103
VikasG Avatar answered Sep 23 '22 20:09

VikasG