Changes between Version 2 and Version 3 of Streaming
- Timestamp:
- Sep 13, 2009, 3:57:00 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Streaming
v2 v3 10 10 * 最簡單的透過shell執行stream的map reduce: 11 11 {{{ 12 $ bin/hadoop jar hadoop-0.18.3-streaming.jar -input input -output stream-output1 -mapper /bin/cat -reducer /usr/bin/wc12 $ bin/hadoop jar hadoop-0.18.3-streaming.jar -input lab3_input -output stream-out1 -mapper /bin/cat -reducer /usr/bin/wc 13 13 }}} 14 * 輸出的結果為: (代表 行、字數、字元數) 14 * 輸出的結果為: 15 || 行 ||字數 ||字元數 || 15 16 {{{ 16 17 #!sh