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:
Devarajulu K 2014-04-16 08:32:44 +00:00
parent 38d5ca2e47
commit 14fee881fd
3 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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);

View File

@ -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);