Changes between Version 3 and Version 4 of YM_Course_2009/Lab12
- Timestamp:
- Jul 11, 2009, 2:32:16 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
YM_Course_2009/Lab12
v3 v4 8 8 9 9 10 = Hadoop Map Reduce 運算 = 11 12 == 目標:字數統計 == 13 14 * 原本內容 15 10 16 {{{ 11 12 $ mkdir input 13 $ cp /tmp/bio.txt input 14 $ hadoop fs -put input input 15 17 No way is my way . 16 18 }}} 17 19 20 * 分析過後 21 22 {{{ 23 No 1 24 Way 2 25 is 1 26 my 1 27 . 28 }}} 29 30 == 操作 == 31 32 * 執行運算 33 34 {{{ 35 $ hadoop jar /usr/lib/hadoop/hadoop-0.18.3-4cloudera0.3.0-examples.jar wordcount hello hot 36 }}} 37 38 * 觀看結果 39 40 {{{ 41 $ hadoop dfs -cat hot/part-00000 42 }}}