Type 'help' in the shell.

Look at 'get' section.

See how it has examples on how to fetch at a ts:

           hbase> get 't1', 'r1', {COLUMN => 'c1', TIMESTAMP => ts1}


Hope this helps,
St.Ack

On Mon, Jun 21, 2010 at 4:59 PM, Sharma, Avani <[email protected]> wrote:
> Thanks, Ryan. Is it possible to also get the latest versions before a 
> particular timestamp on the shell , if I want to query older data ?
> JG did provide me with the api call for the same - I need it for the shell as 
> well.
>
>
> -----Original Message-----
> From: Ryan Rawson [mailto:[email protected]]
> Sent: Friday, June 18, 2010 8:50 PM
> To: [email protected]
> Subject: Re: viewing versions on hbase shell
>
> Hey,
>
> In the shell you can ask for more versions by saying:
> get 'table', 'row', {COLUMN => 'family', VERSIONS => 4}
>
> I believe you have to specify the COLUMN (as either 'family' or
> 'family:qualifier') if you want to specify VERSIONS.
>
> As for versions via the API, there is only really 2 calls:
> Scan.setMaxVersions(int)
> Scan.setMaxVersions()
>
> these set either the requested versions or the max the family can
> store.  There is a similar call for Get.
>
> PS: I just found 3 of your (unanswered) emails in my gmail spam
> folder.  Sorry if it seems like no one is home - I know many of the
> hbase devs use gmail, so it's possible your email address is confusing
> things.
>
> -ryan
>
> On Fri, Jun 18, 2010 at 5:38 PM, Sharma, Avani <[email protected]> wrote:
>> How can I find out how many versions a row has on hbase shell  and also see 
>> that data ?
>>
>> Also, can someone point me to any documentation on working with versions via 
>> the API.
>>
>> Thanks,
>> Avani
>>
>>
>

Reply via email to