Changes between Version 8 and Version 9 of jazz/Hadoop_Lab2
- Timestamp:
- Mar 24, 2009, 11:57:54 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
jazz/Hadoop_Lab2
v8 v9 43 43 請參考 [http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/package-summary.html org.apache.hadoop.examples] 44 44 45 46 47 45 {{{ 48 46 #!html … … 79 77 <tr class="TableRowColor" bgcolor="white"> 80 78 <td width="15%"><b><a href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/Join.html" title="class in org.apache.hadoop.examples">Join</a></b></td> 81 <td>This is the trivial map/reduce program that does absolutely nothing 82 other than use the framework to fragment and sort the input values.</td> 79 <td>This is the trivial map/reduce program that does absolutely nothing other than use the framework to fragment and sort the input values. To run: bin/hadoop jar build/hadoop-examples.jar join [-m maps] [-r reduces] [-inFormat input format class] [-outFormat output format class] [-outKey output key class] [-outValue output value class] [-joinOp <inner|outer|override>] [in-dir]* in-dir out-dir</td> 83 80 </tr> 84 <tr class="TableRowColor" bgcolor="white">85 <td width="15%"><b><a href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/MultiFileWordCount.html" title="class in org.apache.hadoop.examples">MultiFileWordCount</a></b></td>86 <td>MultiFileWordCount is an example to demonstrate the usage of87 MultiFileInputFormat.</td>88 </tr>89 <tr class="TableRowColor" bgcolor="white">90 <td width="15%"><b><a href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/MultiFileWordCount.MapClass.html" title="class in org.apache.hadoop.examples">MultiFileWordCount.MapClass</a></b></td>91 81 92 <td>This Mapper is similar to the one in <a href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/WordCount.MapClass.html" title="class in org.apache.hadoop.examples"><code>WordCount.MapClass</code></a>.</td>93 </tr>94 <tr class="TableRowColor" bgcolor="white">95 <td width="15%"><b><a href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/MultiFileWordCount.MultiFileLineRecordReader.html" title="class in org.apache.hadoop.examples">MultiFileWordCount.MultiFileLineRecordReader</a></b></td>96 <td>RecordReader is responsible from extracting records from the InputSplit.</td>97 </tr>98 <tr class="TableRowColor" bgcolor="white">99 <td width="15%"><b><a href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/MultiFileWordCount.MyInputFormat.html" title="class in org.apache.hadoop.examples">MultiFileWordCount.MyInputFormat</a></b></td>100 <td>To use <a href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/mapred/MultiFileInputFormat.html" title="class in org.apache.hadoop.mapred"><code>MultiFileInputFormat</code></a>, one should extend it, to return a101 (custom) <a href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/mapred/RecordReader.html" title="interface in org.apache.hadoop.mapred"><code>RecordReader</code></a>.</td>102 103 </tr>104 <tr class="TableRowColor" bgcolor="white">105 <td width="15%"><b><a href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/MultiFileWordCount.WordOffset.html" title="class in org.apache.hadoop.examples">MultiFileWordCount.WordOffset</a></b></td>106 <td>This record keeps <filename,offset> pairs.</td>107 </tr>108 <tr class="TableRowColor" bgcolor="white">109 <td width="15%"><b><a href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/PiEstimator.html" title="class in org.apache.hadoop.examples">PiEstimator</a></b></td>110 <td>A Map-reduce program to estimaate the valu eof Pi using monte-carlo111 method.</td>112 </tr>113 <tr class="TableRowColor" bgcolor="white">114 115 <td width="15%"><b><a href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/PiEstimator.PiMapper.html" title="class in org.apache.hadoop.examples">PiEstimator.PiMapper</a></b></td>116 <td>Mappper class for Pi estimation.</td>117 </tr>SleepJob.SleepInputFormat118 82 <tr class="TableRowColor" bgcolor="white"> 119 83 <td width="15%"><b><a href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/RandomTextWriter.html" title="class in org.apache.hadoop.examples">RandomTextWriter</a></b></td> 120 84 <td>This program uses map/reduce to just run a distributed job where there is 121 85 no interaction between the tasks and each task writes a large unsorted 122 random sequence of words. </td>86 random sequence of words.To run: bin/hadoop jar hadoop-${version}-examples.jar randomtextwriter [-outFormat output format class] output</td> 123 87 </tr> 88 124 89 <tr class="TableRowColor" bgcolor="white"> 125 126 90 <td width="15%"><b><a href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/RandomWriter.html" title="class in org.apache.hadoop.examples">RandomWriter</a></b></td> 127 91 <td>This program uses map/reduce to just run a distributed job where there is 128 92 no interaction between the tasks and each task write a large unsorted 129 random binary sequence file of BytesWritable.</td> 130 </tr> 131 <tr class="TableRowColor" bgcolor="white"> 132 <td width="15%"><b><a href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/SleepJob.html" title="class in org.apache.hadoop.examples">SleepJob</a></b></td> 133 <td>Dummy class for testing MR framefork.</td> 93 random binary sequence file of BytesWritable.To run: bin/hadoop jar hadoop-${version}-examples.jar randomwriter [-outFormat output format class] output</td> 134 94 </tr> 135 95 … … 137 97 <td width="15%"><b><a href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/Sort.html" title="class in org.apache.hadoop.examples">Sort<K,V></a></b></td> 138 98 <td>This is the trivial map/reduce program that does absolutely nothing 139 other than use the framework to fragment and sort the input values. </td>99 other than use the framework to fragment and sort the input values.To run: bin/hadoop jar build/hadoop-examples.jar sort [-m maps] [-r reduces] [-inFormat input format class] [-outFormat output format class] [-outKey output key class] [-outValue output value class] [-totalOrder pcnt num samples max splits] in-dir out-dir</td> 140 100 </tr> 101 141 102 <tr class="TableRowColor" bgcolor="white"> 142 103 <td width="15%"><b><a href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/WordCount.html" title="class in org.apache.hadoop.examples">WordCount</a></b></td> … … 144 105 </tr> 145 106 146 <tr class="TableRowColor" bgcolor="white">147 <td width="15%"><b><a href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/WordCount.MapClass.html" title="class in org.apache.hadoop.examples">WordCount.MapClass</a></b></td>148 <td>Counts the words in each line.</td>149 </tr>150 <tr class="TableRowColor" bgcolor="white">151 <td width="15%"><b><a href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/WordCount.Reduce.html" title="class in org.apache.hadoop.examples">WordCount.Reduce</a></b></td>152 <td>A reducer class that just emits the sum of the input values.</td>153 </tr>154 107 </tbody></table> 155 108 156 109 }}} 157 158 110 159 111 == Content 3. 使用網頁Gui瀏覽訊息 ==