| 45 | {{{ |
| 46 | #!html |
| 47 | <p> |
| 48 | </p> |
| 49 | <table summary="" border="1" cellpadding="3" |
| 50 | cellspacing="0" width="100%"> |
| 51 | <tbody> |
| 52 | <tr class="TableHeadingColor" bgcolor="#ccccff"> |
| 53 | <th colspan="2" align="left"><font |
| 54 | size="+2"> |
| 55 | <b>Class Summary</b></font></th> |
| 56 | </tr> |
| 57 | <tr class="TableRowColor" bgcolor="white"> |
| 58 | <td width="15%"><b><a |
| 59 | href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/AggregateWordCount.html" |
| 60 | title="class in org.apache.hadoop.examples">AggregateWordCount</a></b></td> |
| 61 | <td>This is an example Aggregated Hadoop Map/Reduce |
| 62 | application. It reads the text input files, breaks each line into words |
| 63 | and counts them. The output is a locally sorted list of words and the |
| 64 | count of how often they occurred. To run: bin/hadoop jar |
| 65 | hadoop-*-examples.jar aggregatewordcount in-dir out-dir numOfReducers |
| 66 | textinputformat </td> |
| 67 | </tr> |
| 68 | <tr class="TableRowColor" bgcolor="white"> |
| 69 | <td width="15%"><b><a |
| 70 | href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/AggregateWordHistogram.html" |
| 71 | title="class in org.apache.hadoop.examples">AggregateWordHistogram</a></b></td> |
| 72 | <td>This is an example Aggregated Hadoop Map/Reduce |
| 73 | application. Computes the histogram of the words in the input texts. To |
| 74 | run: bin/hadoop jar hadoop-*-examples.jar aggregatewordhist in-dir |
| 75 | out-dir numOfReducers textinputformat </td> |
| 76 | </tr> |
| 77 | <tr class="TableRowColor" bgcolor="white"> |
| 78 | <td width="15%"><b><a |
| 79 | href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/ExampleDriver.html" |
| 80 | title="class in org.apache.hadoop.examples">ExampleDriver</a></b></td> |
| 81 | <td>A description of an example program based on its class |
| 82 | and a human-readable description.</td> |
| 83 | </tr> |
| 84 | <tr class="TableRowColor" bgcolor="white"> |
| 85 | <td width="15%"><b><a |
| 86 | href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/Grep.html" |
| 87 | title="class in org.apache.hadoop.examples">Grep</a></b></td> |
| 88 | <td> </td> |
| 89 | </tr> |
| 90 | <tr class="TableRowColor" bgcolor="white"> |
| 91 | <td width="15%"><b><a |
| 92 | href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/Join.html" |
| 93 | title="class in org.apache.hadoop.examples">Join</a></b></td> |
| 94 | <td>This is the trivial map/reduce program that does |
| 95 | absolutely nothing other than use the framework to fragment and sort |
| 96 | the input values. To run: bin/hadoop jar build/hadoop-examples.jar join |
| 97 | [-m maps] [-r reduces] [-inFormat input format class] [-outFormat |
| 98 | output format class] [-outKey output key class] [-outValue output value |
| 99 | class] [-joinOp <inner |outer|override="">] [in-dir]* |
| 100 | in-dir out-dir</inner></td> |
| 101 | </tr> |
| 102 | <tr class="TableRowColor" bgcolor="white"> |
| 103 | <td width="15%"><b><a |
| 104 | href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/RandomTextWriter.html" |
| 105 | title="class in org.apache.hadoop.examples">RandomTextWriter</a></b></td> |
| 106 | <td>This program uses map/reduce to just run a distributed |
| 107 | job where there is |
| 108 | no interaction between the tasks and each task writes a large unsorted |
| 109 | random sequence of words.To run: bin/hadoop jar |
| 110 | hadoop-${version}-examples.jar randomtextwriter [-outFormat output |
| 111 | format class] output</td> |
| 112 | </tr> |
| 113 | <tr class="TableRowColor" bgcolor="white"> |
| 114 | <td width="15%"><b><a |
| 115 | href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/RandomWriter.html" |
| 116 | title="class in org.apache.hadoop.examples">RandomWriter</a></b></td> |
| 117 | <td>This program uses map/reduce to just run a distributed |
| 118 | job where there is |
| 119 | no interaction between the tasks and each task write a large unsorted |
| 120 | random binary sequence file of BytesWritable.To run: bin/hadoop jar |
| 121 | hadoop-${version}-examples.jar randomwriter [-outFormat output format |
| 122 | class] output</td> |
| 123 | </tr> |
| 124 | <tr class="TableRowColor" bgcolor="white"> |
| 125 | <td width="15%"><b><a |
| 126 | href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/Sort.html" |
| 127 | title="class in org.apache.hadoop.examples">Sort<K,V></a></b></td> |
| 128 | <td>This is the trivial map/reduce program that does |
| 129 | absolutely nothing |
| 130 | other than use the framework to fragment and sort the input values.To |
| 131 | run: bin/hadoop jar build/hadoop-examples.jar sort [-m maps] [-r |
| 132 | reduces] [-inFormat input format class] [-outFormat output format |
| 133 | class] [-outKey output key class] [-outValue output value class] |
| 134 | [-totalOrder pcnt num samples max splits] in-dir out-dir</td> |
| 135 | </tr> |
| 136 | <tr class="TableRowColor" bgcolor="white"> |
| 137 | <td width="15%"><b><a |
| 138 | href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/WordCount.html" |
| 139 | title="class in org.apache.hadoop.examples">WordCount</a></b></td> |
| 140 | <td>This is an example Hadoop Map/Reduce application.</td> |
| 141 | </tr> |
| 142 | </tbody> |
| 143 | </table> |