فهرست منبع

HADOOP-1810. Fix incorrect value type in MRBench (SmallJobs). Contributed by Devaraj Das

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@571483 13f79535-47bb-0310-9956-ffa450edef68
Thomas White 18 سال پیش
والد
کامیت
3838a5c6af
2فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 3 0
      CHANGES.txt
  2. 3 2
      src/test/org/apache/hadoop/mapred/MRBench.java

+ 3 - 0
CHANGES.txt

@@ -79,6 +79,9 @@ Trunk (unreleased changes)
     HADOOP-1795.  Fix so that jobs can generate output file names with
     special characters.  (Frédéric Bertin via cutting)
 
+    HADOOP-1810.  Fix incorrect value type in MRBench (SmallJobs)
+    (Devaraj Das via tomwhite)
+
   IMPROVEMENTS
 
     HADOOP-1779. Replace INodeDirectory.getINode() by a getExistingPathINodes()

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

@@ -33,6 +33,7 @@ import org.apache.hadoop.io.LongWritable;
 import org.apache.hadoop.io.UTF8;
 import org.apache.hadoop.io.Writable;
 import org.apache.hadoop.io.WritableComparable;
+import org.apache.hadoop.io.Text;
 
 /**
  * Runs a job multiple times and takes average of all runs.
@@ -52,9 +53,9 @@ public class MRBench {
    * writes out data as text again. 
    */
   public static class Map extends MapReduceBase
-    implements Mapper<WritableComparable, UTF8, UTF8, UTF8> {
+    implements Mapper<WritableComparable, Text, UTF8, UTF8> {
     
-    public void map(WritableComparable key, UTF8 value,
+    public void map(WritableComparable key, Text value,
                     OutputCollector<UTF8, UTF8> output,
                     Reporter reporter) throws IOException 
     {