MAPREDUCE-5775. Remove unnecessary job.setNumReduceTasks in SleepJob.createJob. Contributed by jhanver chand sharma.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1587831 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
38d5ca2e47
commit
14fee881fd
@ -174,6 +174,9 @@ Release 2.5.0 - UNRELEASED
|
||||
MAPREDUCE-5014. Extend Distcp to accept a custom CopyListing.
|
||||
(Srikanth Sundarrajan via amareshwari)
|
||||
|
||||
MAPREDUCE-5775. Remove unnecessary job.setNumReduceTasks in SleepJob.createJob
|
||||
(jhanver chand sharma via devaraj)
|
||||
|
||||
Release 2.4.1 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -219,7 +219,6 @@ public Job createJob(int numMapper, int numReducer,
|
||||
Job job = Job.getInstance(conf, "sleep");
|
||||
job.setNumReduceTasks(numReducer);
|
||||
job.setJarByClass(SleepJob.class);
|
||||
job.setNumReduceTasks(numReducer);
|
||||
job.setMapperClass(SleepMapper.class);
|
||||
job.setMapOutputKeyClass(IntWritable.class);
|
||||
job.setMapOutputValueClass(NullWritable.class);
|
||||
|
@ -208,7 +208,6 @@ public Job createJob(int numMapper, int numReducer,
|
||||
Job job = Job.getInstance(conf, "sleep");
|
||||
job.setNumReduceTasks(numReducer);
|
||||
job.setJarByClass(SleepJob.class);
|
||||
job.setNumReduceTasks(numReducer);
|
||||
job.setMapperClass(SleepMapper.class);
|
||||
job.setMapOutputKeyClass(IntWritable.class);
|
||||
job.setMapOutputValueClass(NullWritable.class);
|
||||
|
Loading…
Reference in New Issue
Block a user