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
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.