title: How to set the number of mappers in new Hadoop api?
body: <p>I've switched to the new Hadoop api (mapreduce) from the old one (mapred). I can't set the number of mappers in the new api. I can use <code>job.setNumReduceTasks()</code> to set the number of reducers but there isn't any method for number of mappers. I also tried <code>conf.setInt("mapred.map.tasks", numMapper)</code> and <code>conf.setInt("mapreduce.map.tasks", numMapper)</code> but it is not working either.</p>