Changes between Version 6 and Version 7 of Streaming
- Timestamp:
- Sep 13, 2009, 4:03:43 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Streaming
v6 v7 10 10 * 最簡單的透過shell執行stream的map reduce: 11 11 {{{ 12 $ bin/hadoop jar hadoop-0.18.3-streaming.jar -input lab3_input \ 13 -output stream-out1 -mapper /bin/cat -reducer /usr/bin/wc 12 13 $ bin/hadoop jar contrib/streaming/hadoop-0.18.3-streaming.jar \ 14 -input lab3_input -output stream-out1 -mapper /bin/cat -reducer /usr/bin/wc 15 14 16 }}} 15 * 輸出的結果為: 17 18 * 輸出的結果為: 19 20 {{{ 21 $ bin/hadoop fs -cat stream-out1/part-00000 22 }}} 23 16 24 || 行 || 字數 || 字元數 || 17 || 2910628 || 24507806 || 143451003||18 25 || 1528 || 4612 || 48644 || 26 19 27 20 28 = 用php實做mapReduce =