At least in 0.19, the incrCounter method on the Counter object is a
synchronized method.
Counters.java: public synchronized void incrCounter(Enum key, long amount) {
I believe there are some issues in 18 and 19 that cause some jitter in the
counter values while the job is running,
If you are using a combiner, and the combiner is incrementing counters, that
can cause some confusion.
On Tue, Jul 7, 2009 at 11:38 PM, Sagar Naik <[email protected]> wrote:
>
> public void incrCounter(Enum key, long amount)
>
> I am using a multi-threaded Mapper.
> I m not sure, but should this be synchronized ?
> I log the counter call incrCounter.
> log stmt counters are fine and Reporter counters are not matching
>
> m i missing something ?
>
> -Sagar
>
>
>
>
>
--
Pro Hadoop, a book to guide you from beginner to hadoop mastery,
http://www.amazon.com/dp/1430219424?tag=jewlerymall
www.prohadoopbook.com a community for Hadoop Professionals