Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> Sharing counter values between mappers


Copy link to this message
-
Re: Sharing counter values between mappers
I was talking about context counters (the old reporter counters). But maybe
storing counters in hbase is a way to achieve what I want.
On Thu, May 2, 2013 at 9:22 AM, Ted Yu <[EMAIL PROTECTED]> wrote:

> Take a look at the following method in HTable:
>
>    * @return The new value, post increment.
>
>    * @throws IOException if a remote or network exception occurs.
>
>    */
>
>   long incrementColumnValue(byte[] row, byte[] family, byte[] qualifier,
>
>       long amount) throws IOException;
>
> On Thu, May 2, 2013 at 9:19 AM, Gaetan Deputier <[EMAIL PROTECTED]> wrote:
>
> > Hello Hbase users,
> >
> > I have a question about counters. Is there any way to synchronize counter
> > values between mappers ?
> >
> > E.g : I have a counter i incremented at each map call and I would like to
> > stop each mapper once i has reached a threshold.
> >
> > Sincerely,
> >
> > G.
> >
>