hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Washusen <...@reactive.org>
Subject Re: how to calculate top-xxx rowkeys
Date Sun, 14 Feb 2010 22:29:17 GMT
Hi Sujee,
How much data do you have in your table?  Keeping a count in memory has it's
obvious problems but if it's a small table then I guess it would work...

How fast do you need to get this information?  Maybe a map reduce job would
be a better way of doing it?

Cheers,
Dan


On 14 February 2010 19:56, Sujee Maniyam <sujee@sujee.net> wrote:

> HI
>
> I have a table with rowkey is composed of userid + timestamp. I need
> to figure out 'top-100' users.
>
> One approach is running a scanner and keeping a hashmap of user-count in
> memory.
>
> Wondering if there is an hbase-trick I could use?
>
> thanks
> Sujee
>

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