From ef6110e94d3839489f5a193dc9be1cc5c7ec52df Mon Sep 17 00:00:00 2001 From: Todd Lipcon Date: Mon, 25 Jul 2011 21:29:38 +0000 Subject: [PATCH] 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 --- mapreduce/CHANGES.txt | 3 +++ .../mapred/org/apache/hadoop/mapreduce/TestLocalRunner.java | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mapreduce/CHANGES.txt b/mapreduce/CHANGES.txt index 9e1b1f4483..54f039df1c 100644 --- a/mapreduce/CHANGES.txt +++ b/mapreduce/CHANGES.txt @@ -350,6 +350,9 @@ Trunk (unreleased changes) MAPREDUCE-2575. TestMiniMRDFSCaching fails if test.build.dir is set 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 INCOMPATIBLE CHANGES diff --git a/mapreduce/src/test/mapred/org/apache/hadoop/mapreduce/TestLocalRunner.java b/mapreduce/src/test/mapred/org/apache/hadoop/mapreduce/TestLocalRunner.java index ca7713024b..7d600ca253 100644 --- a/mapreduce/src/test/mapred/org/apache/hadoop/mapreduce/TestLocalRunner.java +++ b/mapreduce/src/test/mapred/org/apache/hadoop/mapreduce/TestLocalRunner.java @@ -264,7 +264,7 @@ public void testGcCounter() throws Exception { Job job = Job.getInstance(); job.setMapperClass(GCMapper.class); job.setNumReduceTasks(0); - job.getConfiguration().set("io.sort.mb", "25"); + job.getConfiguration().set(MRJobConfig.IO_SORT_MB, "25"); FileInputFormat.addInputPath(job, inputPath); FileOutputFormat.setOutputPath(job, outputPath); @@ -303,8 +303,7 @@ public void testMultiMaps() throws Exception { job.setReducerClass(CountingReducer.class); job.setNumReduceTasks(1); 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); FileOutputFormat.setOutputPath(job, outputPath);