hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Lipcon <t...@cloudera.com>
Subject Re: Best Practices Adding Rows
Date Mon, 06 Dec 2010 17:27:52 GMT
Hi Peter,

You can set the start row to '20101201|14' and the end row to '20101201|15'
using the scanner API:


On Mon, Dec 6, 2010 at 9:21 AM, Peter Haidinyak <phaidinyak@local.com>wrote:

> Hi,
>  I have to enter log data into HBase. We will need to query the data by
> Date:Hour
> I am using the 'Date|Hour|Incrementing Counter' as the Row Id. Is there an
> easy was to request the starting and stopping rows in a scan using some
> similar to 'like'?
> Scan 'T1', {STARTROW=>'like 20101201|14'}
> If not, what would be the best way to retrieve only one hour's worth of
> data? I am thinking of using another table to hold the incrementing count
> information for a Date|Hour and use that for Start/Stop.
> Thanks
> -Pete

Todd Lipcon
Software Engineer, Cloudera

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message