Przeglądaj źródła

HADOOP-460. Fix contrib/smallJobsBenchmark to use Text instead of UTF8.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@438242 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting 18 lat temu
rodzic
commit
0f7496653c

+ 3 - 0
CHANGES.txt

@@ -101,6 +101,9 @@ Trunk (unreleased changes)
 24. HADOOP-419. Fix a NullPointerException finding the ClassLoader
     when using libhdfs.  (omalley via cutting)
 
+25. HADOOP-460. Fix contrib/smallJobsBenchmark to use Text instead of
+    UTF8.  (Sanjay Dahiya via cutting)
+
 
 Release 0.5.0 - 2006-08-04
 

+ 0 - 6
src/contrib/smallJobsBenchmark/bin/run.sh

@@ -6,12 +6,6 @@ then
   exit 1;
 fi
 
-if [ -z $JAVA_HOME ] 
-then
-  echo "Error JAVA_HOME not defined"  ;
-  exit 1;
-fi
-
 mkdir -p logs;
 
 export TIMES=2

+ 1 - 1
src/contrib/smallJobsBenchmark/src/java/org/apache/hadoop/benchmarks/mapred/BenchmarkMapper.java

@@ -23,7 +23,7 @@ public class BenchmarkMapper extends MapReduceBase implements Mapper {
   public void map(WritableComparable key, Writable value,
       OutputCollector output, Reporter reporter) throws IOException {
     
-    String line = ((UTF8)value).toString();
+    String line = value.toString();
     output.collect(new UTF8(process(line)), new UTF8(""));		
   }
   

+ 1 - 1
src/contrib/smallJobsBenchmark/src/java/org/apache/hadoop/benchmarks/mapred/MultiJobRunner.java

@@ -345,7 +345,7 @@ public class MultiJobRunner {
     int numMaps = 2; 
     int numReduces = 1 ; 
     int dataLines = 1 ; 
-    int inputType = GenData.RANDOM ; 
+    int inputType = GenData.ASCENDING ; 
     boolean ignoreOutput = false ; 
     boolean verbose = false ;