Radim, This does not exist yet as a direct API but its a fair thing to demand from a submitted job configuration (as that does hold the truthful value). Please file a JIRA for adding this to JobContext. Do let this thread know the JIRA ID once you've filed it (under MAPREDUCE).
For now, do: job.getConfiguration().getInt(MRJobConfig.NUM_MAPS); 2012/3/4 Radim Kolar <h...@sendmail.cz>: > I switched to new mapreduce API. I need a replacement for > > job.getNumMapTasks()) > > in job driver. -- Harsh J