hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Usman Waheed" <usm...@opera.com>
Subject Re: Using getRowTs
Date Tue, 01 Mar 2011 18:50:26 GMT
Yes, adding +1 gives me the expected result.
Thanks,
Usman

Please note: I found this post after my email to the mailing list.
http://search-hadoop.com/m/nKT3k2VYlp1/getRowTs&subj=Re+Thrift+timestamps+exclusing+in+HBase+0+20+2



> Looking at source, getRowTs calls getRowWithColumnsTs with null for
> columns:  
> http://hbase.apache.org/xref/org/apache/hadoop/hbase/thrift/ThriftServer.html#367
>
> I see then that getRowWithColumnTs is doing a setTimeRange on the Get
> using the passed timestamp as the upper bound.  The maximum value
> passed to a setTimeRange is exclusive, not inclusive (see
> http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/Get.html#setTimeRange(long,
> long)).
>
> Could this be the issue?  If you add 1 to your timestamp, do you get
> expected result?
>
> St.Ack
>
> On Tue, Mar 1, 2011 at 8:50 AM, Usman Waheed <usmanw@opera.com> wrote:
>> Hi,
>>
>> I am using the Thrift API (Perl) to retrieve data out of Hbase tables  
>> and my
>> getRow function works fine but when i use the getRowTs for some odd  
>> reason i
>> am not getting back the record with the timestamp param.
>> The record exits in the table and from the hbase shell using the get  
>> command
>> it works fine provided the table name, row key and timestamp value  
>> (long).
>>
>> If i use some of the other functions from the API like getRowColumns  
>> they
>> work fine it is just with the Ts i am not being able to retrieve the  
>> data.
>>
>> I have hbase 0.90.0 installed, has anybody experienced such an issue or  
>> any
>> clues?
>>
>> Thanks,
>> Usman
>>
>> --
>> Using Opera's revolutionary email client: http://www.opera.com/mail/
>>


-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/

Mime
View raw message