close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": libtasn1.so.6: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Sep 28, 2010, 10:05:38 AM (15 years ago)
- Author:
-
waue
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v1
|
v2
|
|
| 10 | 10 | [wiki:NCHCCloudCourse100928_4_EXM5 上一關 < ] 第六關 [wiki:NCHCCloudCourse100928_4_EXM7 > 下一關] |
| 11 | 11 | |
| | 12 | = 說明 = |
| 12 | 13 | |
| | 14 | {{{ |
| | 15 | #!text |
| | 16 | WordIndex |
| | 17 | 說明: |
| | 18 | 將每個字出於哪個檔案,那一行印出來 |
| | 19 | |
| | 20 | 測試方法: |
| | 21 | 將此程式運作在hadoop 0.20 平台上,執行: |
| | 22 | --------------------------- |
| | 23 | hadoop jar WordIndex.jar <input> <output> |
| | 24 | --------------------------- |
| | 25 | |
| | 26 | 注意: |
| | 27 | 1. 在hdfs 上來源檔案的路徑為 你所指定的 <input> |
| | 28 | 請注意必須先放資料到此hdfs上的資料夾內,且此資料夾內只能放檔案,不可再放資料夾 |
| | 29 | 2. 運算完後,程式將執行結果放在hdfs 的輸出路徑為 你所指定的 <output> |
| | 30 | |
| | 31 | }}} |
| | 32 | |
| | 33 | = !WordIndex.java = |
| 13 | 34 | {{{ |
| 14 | 35 | #!java |