hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stack <st...@duboce.net>
Subject Re: How can I use counters in Hadoop
Date Tue, 15 Apr 2008 17:43:04 GMT
https://issues.apache.org/jira/browse/HBASE-559 has an example. Ignore 
the HBase stuff.  Whats important is the ENUM at head of the MR job 
class, the calls to Reporter inside in tasks, and the properties file -- 
both how its named and that it ends up in the generated job jar.

CloudyEye wrote:
> Hi, I am new newbie to Hadoop. I would be thankful if you help me.
> I've read that I can use the Reporter class to increase counters. this way:
> reporter.incrCounter(Enum args, long arg1);
> How can I get the values of those counters ?
> My aim is to count the total inputs to the mappers , then i want to override
> the:
> public void configure(JobConf job) {} method of the reducer to get the
> counter value before reducing any key,values.
> Regards,

View raw message