hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sudhir patil <spatil.sud...@gmail.com>
Subject Re: Strategies to query efficiently in HBase
Date Wed, 11 Oct 2017 12:48:32 GMT
Your row key looks good, only part not sure is why ur appending with 0x you
could have just appended number to string. But even in the current format
it should work.

Can you try scan with very small limit? to check if timeout is because of
large data you fetching or issue is something else.


On Tue, Oct 10, 2017 at 2:33 AM, sauloricci <infsaulok@gmail.com> wrote:

> Hi spats,
>
> thank you for your message.
>
>
> Let me clarify a mistake I mentioned in my original post: I have 11 regions
> for that billions of rows table from 3 regions servers actually.
>
> I'm gonna answer your questions bellow:
>
> 1>
> This is the pattern of my rowkeys: "<hash>#<field_1>#<field_2>#
> 0x<field_3>",
> where <hash> is the sha2 of <field_1>
>
> I wanna to retrieve rows whose start keys  as
> "<hash>#<field_1>#<field_2>#0x00000" and stoprows as
> "<hash>#<field_1>#<field_2>#0xfffff0", where the fields <hash>,
<field_1>,
> <field_2> in both start and stop rows are the same. Just <field_3> is
> different.
>
> What do you think about this pattern? I hashed the most significant part of
> the rowkey and just changed the less significant part when searching the
> ranges I want.
>
> Thank you
>
>
>
> --
> Sent from: http://apache-hbase.679495.n3.nabble.com/HBase-User-
> f4020416.html
>

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