hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Getting stats of running job from within job
Date Thu, 03 Jul 2008 19:34:47 GMT
Nathan Marz wrote:
> Is there a way to get stats of the currently running job 
> programatically?

This should probably be an FAQ.  In your Mapper or Reducer's configure 
implementation, you can get a handle on the running job with:

RunningJob running =
   new JobClient(job).getJob(job.get("mapred.job.id"));

Doug

Mime
View raw message