ソースを参照

HADOOP-1194. Make compression style record level for map output compression. Contributed by Arun C Murthy.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@525581 13f79535-47bb-0310-9956-ffa450edef68
Thomas White 18 年 前
コミット
40419a0a8e
2 ファイル変更5 行追加6 行削除
  1. 3 0
      CHANGES.txt
  2. 2 6
      src/java/org/apache/hadoop/mapred/JobConf.java

+ 3 - 0
CHANGES.txt

@@ -100,6 +100,9 @@ Trunk (unreleased changes)
 31. HADOOP-1163.  Fix ganglia metrics to aggregate metrics from different
     hosts properly.  (Michael Bieniosek via tomwhite)
 
+32. HADOOP-1194.  Make compression style record level for map output
+    compression.  (Arun C Murthy via tomwhite)
+
 
 Release 0.12.3 (not yet released)
 

+ 2 - 6
src/java/org/apache/hadoop/mapred/JobConf.java

@@ -334,12 +334,8 @@ public class JobConf extends Configuration {
    * @return the compression type, defaulting to job output compression type
    */
   public SequenceFile.CompressionType getMapOutputCompressionType() {
-    String val = get("map.output.compression.type");
-    if (val == null) {
-      return SequenceFile.getCompressionType(this);
-    } else {
-      return SequenceFile.CompressionType.valueOf(val);
-    }
+    String val = get("map.output.compression.type", "RECORD");
+    return SequenceFile.CompressionType.valueOf(val);
   }
   
   /**