Sfoglia il codice sorgente

MAPREDUCE-4981. Add WordMean, WordMedian, WordStandardDeviation to ExamplesDriver. Contributed by Plamen Jeliazkov.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1467076 13f79535-47bb-0310-9956-ffa450edef68
Konstantin Shvachko 12 anni fa
parent
commit
21c14c0b02

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

@@ -185,6 +185,9 @@ Release 2.0.5-beta - UNRELEASED
     history, instaed of simulating state machine events.
     (Jason Lowe and Robert Parker via sseth)
 
+    MAPREDUCE-4981. Add WordMean, WordMedian, WordStandardDeviation
+    to ExamplesDriver. (Plamen Jeliazkov via shv)
+
   OPTIMIZATIONS
 
   BUG FIXES

+ 6 - 0
hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/ExampleDriver.java

@@ -38,6 +38,12 @@ public class ExampleDriver {
     try {
       pgd.addClass("wordcount", WordCount.class, 
                    "A map/reduce program that counts the words in the input files.");
+      pgd.addClass("wordmean", WordMean.class,
+                   "A map/reduce program that counts the average length of the words in the input files.");
+      pgd.addClass("wordmedian", WordMedian.class,
+                   "A map/reduce program that counts the median length of the words in the input files.");
+      pgd.addClass("wordstandarddeviation", WordStandardDeviation.class,
+                   "A map/reduce program that counts the standard deviation of the length of the words in the input files.");
       pgd.addClass("aggregatewordcount", AggregateWordCount.class, 
                    "An Aggregate based map/reduce program that counts the words in the input files.");
       pgd.addClass("aggregatewordhist", AggregateWordHistogram.class,