Browse Source

MAPREDUCE-2622. Remove the last remaining reference to the deprecated configuration "io.sort.mb". Contributed by Harsh J Chouraria.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1150921 13f79535-47bb-0310-9956-ffa450edef68
Todd Lipcon 14 years ago
parent
commit
ef6110e94d

+ 3 - 0
mapreduce/CHANGES.txt

@@ -350,6 +350,9 @@ Trunk (unreleased changes)
     MAPREDUCE-2575. TestMiniMRDFSCaching fails if test.build.dir is set 
     MAPREDUCE-2575. TestMiniMRDFSCaching fails if test.build.dir is set 
     to something other than build/test (Thomas Graves via mahadev)
     to something other than build/test (Thomas Graves via mahadev)
 
 
+    MAPREDUCE-2622. Remove the last remaining reference to the deprecated
+    configuration "io.sort.mb". (Harsh J Chouraria via todd)
+
 Release 0.22.0 - Unreleased
 Release 0.22.0 - Unreleased
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES

+ 2 - 3
mapreduce/src/test/mapred/org/apache/hadoop/mapreduce/TestLocalRunner.java

@@ -264,7 +264,7 @@ public class TestLocalRunner extends TestCase {
     Job job = Job.getInstance();
     Job job = Job.getInstance();
     job.setMapperClass(GCMapper.class);
     job.setMapperClass(GCMapper.class);
     job.setNumReduceTasks(0);
     job.setNumReduceTasks(0);
-    job.getConfiguration().set("io.sort.mb", "25");
+    job.getConfiguration().set(MRJobConfig.IO_SORT_MB, "25");
     FileInputFormat.addInputPath(job, inputPath);
     FileInputFormat.addInputPath(job, inputPath);
     FileOutputFormat.setOutputPath(job, outputPath);
     FileOutputFormat.setOutputPath(job, outputPath);
 
 
@@ -303,8 +303,7 @@ public class TestLocalRunner extends TestCase {
     job.setReducerClass(CountingReducer.class);
     job.setReducerClass(CountingReducer.class);
     job.setNumReduceTasks(1);
     job.setNumReduceTasks(1);
     LocalJobRunner.setLocalMaxRunningMaps(job, 6);
     LocalJobRunner.setLocalMaxRunningMaps(job, 6);
-    job.getConfiguration().set("io.sort.record.pct", "0.50");
-    job.getConfiguration().set("io.sort.mb", "25");
+    job.getConfiguration().set(MRJobConfig.IO_SORT_MB, "25");
     FileInputFormat.addInputPath(job, inputPath);
     FileInputFormat.addInputPath(job, inputPath);
     FileOutputFormat.setOutputPath(job, outputPath);
     FileOutputFormat.setOutputPath(job, outputPath);