Ver Fonte

Merge -c 1527848 from trunk to branch-2.1-beta to fix MAPREDUCE-5551. Fix compat with hadoop-1 in SequenceFileAsBinaryOutputFormat.WritableValueBytes by re-introducing missing constructors. Contributed by Zhijie Shen.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2.1-beta@1527851 13f79535-47bb-0310-9956-ffa450edef68
Arun Murthy há 11 anos atrás
pai
commit
41340b7e62

+ 4 - 0
hadoop-mapreduce-project/CHANGES.txt

@@ -63,6 +63,10 @@ Release 2.1.2 - UNRELEASED
     the job is really done - a bug caused by MAPREDUCE-5505. (Zhijie Shen via
     vinodkv)
 
+    MAPREDUCE-5551. Fix compat with hadoop-1 in
+    SequenceFileAsBinaryOutputFormat.WritableValueBytes by re-introducing
+    missing constructors. (Zhijie Shen via acmurthy)
+
 Release 2.1.1-beta - 2013-09-23
 
   INCOMPATIBLE CHANGES

+ 7 - 0
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/SequenceFileAsBinaryOutputFormat.java

@@ -47,6 +47,13 @@ public class SequenceFileAsBinaryOutputFormat
    */
   static protected class WritableValueBytes extends org.apache.hadoop.mapreduce
       .lib.output.SequenceFileAsBinaryOutputFormat.WritableValueBytes {
+    public WritableValueBytes() {
+      super();
+    }
+
+    public WritableValueBytes(BytesWritable value) {
+      super(value);
+    }
   }
 
   /**