title: How to set number of Map tasks in hadoop Job class
body: <p>I have a problem to set number of mappers to one through Java. I am using Job and configuration class. I know that we can set the number of reducers through <code>mapred.map.tasks</code> with old deprecated API. </p>
  
  <p>Is there any way to specify that using Job and configuration classes. I tried by increasing the input file split size using  <code>FileInputFormat.setMinInputSplitSize(FullFilesize)</code></p>
  
  <p>But, I would like to know do we have any equivalent to the <code>mapred.map.tasks</code> in the new API or how do you specify by other way</p>