hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: how to get rowkey with largest number of versions
Date Wed, 22 Aug 2018 19:13:44 GMT
Antonio:
Please take a look at CellCounter under hbase-mapreduce module which may be
of use to you:

 * 6. Total number of versions of each qualifier.


Please note that the max versions may fluctuate depending on when major
compaction kicks in.


FYI

On Wed, Aug 22, 2018 at 11:53 AM Ankit Singhal <ankitsinghal59@gmail.com>
wrote:

> I don't think so if there is any direct way.
> You may need to do a raw scan of a full table and count the number of
> versions of a column returned for each row to calculate the max. (you can
> optimize this with custom coprocessor by returning a single row key having
> the largest versions of a column through each regionserver and at client
> select max out of all results)
>
> On Wed, Aug 22, 2018 at 11:28 AM Antonio Si <antonio.si@gmail.com> wrote:
>
> > Hi,
> >
> > I am new to hbase. I am wondering how I could find out which rowkey has
> the
> > largest number of versions in a column family.
> >
> > Any pointer would be very helpful.
> >
> > Thanks.
> >
> > Antonio.
> >
>

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