On Wed, Oct 03, 2007 at 10:20:32AM -0400, Steve Schlosser wrote:
>Hello all
>
>What is the procedure for reading counters after a job has run?  I
>want to be able to run my job using JobClient.runJob(), then read out
>some counters to make a decision about whether to run another
>reduction or exit.  I can think of some hacky ways to do it, but there
>must be some correct way to read the counters.
>

Take a look at: 
http://lucene.apache.org/hadoop/api/org/apache/hadoop/mapred/JobClient.html#submitJob(org.apache.hadoop.mapred.JobConf).
 

That returns a RunningJob, then use 
http://lucene.apache.org/hadoop/api/org/apache/hadoop/mapred/RunningJob.html#getCounters()

Arun

>Thanks!
>
>-steve

Reply via email to