You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Hua Su <hu...@gmail.com> on 2010/02/06 14:23:24 UTC

scan hbase using thrift api with timestamp range

Hi All,

Is there anyway to scan a hbase table using thrift api with timestamp range?

AFAIK, currently thrift api is the ONLY way to access hbase from non-java
languages such as C++/Python/PHP/etc.. However, the thrift api seems
incomplete compared to native Java hbase client api.
E.g., org.apache.hadoop.hbase.client.Scan supports to retrieve columns
within a specific range of version timestamps, but there are no
corresponding function provided in thrift api. So there is no way to do
those stuffs in C++/Python/PHP/etc? Why there are such restrictions?

Best,
Hua

Re: scan hbase using thrift api with timestamp range

Posted by Lars Francke <la...@gmail.com>.
> Is there anyway to scan a hbase table using thrift api with timestamp range?
>
> AFAIK, currently thrift api is the ONLY way to access hbase from non-java
> languages such as C++/Python/PHP/etc.. However, the thrift api seems
> incomplete compared to native Java hbase client api.

You have the option of using the REST interface (Stargate[1]) to
access HBase from non-java languages.

In regards to the Thrift API you are correct. It is currently
incomplete. Take a look at ticket HBASE-1744[2] for planned
improvements.

Cheers,
Lars

[1] http://wiki.apache.org/hadoop/Hbase/Stargate
[2] http://issues.apache.org/jira/browse/HBASE-1744