Support Questions

Find answers, ask questions, and share your expertise

how can we set no of mappers and reducers for particular job?

Explorer
 
2 REPLIES 2

Explorer

In java code:

Job job = new Job(conf);
...
job.setNumReduceTasks(20);
job.setNumMapTasks(20);


Expert Contributor

@pavan p

From command line you can check -Dmapreduce.job.maps, -Dmapreduce.job.reduces and -Dmapreduce.job.running.map.limit, -Dmapreduce.job.running.reduce.limit.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.