1

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 mapred.map.tasks with old deprecated API.

Is there any way to specify that using Job and configuration classes. I tried by increasing the input file split size using FileInputFormat.setMinInputSplitSize(FullFilesize)

But, I would like to know do we have any equivalent to the mapred.map.tasks in the new API or how do you specify by other way

Santhosh
  • 1,771
  • 1
  • 15
  • 25

1 Answers1

0

The number of map tasks for a given job is driven by the number of input splits and not by the mapred.map.tasks parameter

refer following stack over flow question Setting the number of map tasks and reduce tasks

Community
  • 1
  • 1