setNumMapTasks(int) & setNumReduceTasks(int) in Mapreduce

This is for Hadoop eco system like HDFS, Map reduce, Hive, Hbase, Pig, sqoop,sqoop2, Avro, solr, hcatalog, impala, Oozie, Zoo Keeper and Hadoop distribution like Cloudera, Hortonwork etc.
mohit123
Posts: 162
Joined: Sat Sep 20, 2014 11:29 pm
Contact:

setNumMapTasks(int) & setNumReduceTasks(int) in Mapreduce

Postby mohit123 » Sun Sep 21, 2014 12:34 am

Are setNumMapTasks(int) & setNumReduceTasks(int) methods supported in Mapreduce JAVA API?


Guest

Re: setNumMapTasks(int) & setNumReduceTasks(int) in Mapreduc

Postby Guest » Mon Sep 22, 2014 1:45 am

setNumMapTasks(int) method is not supported In hadoop Mapreduce.
When you try to add job.setNumMapTasks(int) to job config, you will get a compile error stating, “setNumMapTasks(int) is undefined for the job type”.

but you can add the reducer equivalent, 'job.setNumReduceTasks(int)' In hadoop Mapreduce.


Return to “Hadoop and Big Data”

Who is online

Users browsing this forum: No registered users and 3 guests