Changes between Version 14 and Version 15 of Streaming
- Timestamp:
- Sep 13, 2009, 8:14:52 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Streaming
v14 v15 125 125 }}} 126 126 127 * 修改執行權限 128 129 {{{ 130 $ chmod 755 *.php 131 }}} 132 133 * 測試是否能運作 134 135 {{{ 136 $ echo "i love hadoop, hadoop love u" | ./mapper.php | ./reducer.php 137 }}} 138 127 139 * 開始執行 128 140 129 141 {{{ 130 $ chmod 755 *.php131 $ echo "i love hadoop, hadoop love u" | ./mapper.php | ./reducer.php132 142 $ bin/hadoop jar hadoop/contrib/hadoop-*-streaming.jar -mapper mapper.php -reducer reducer.php -input lab4_input -output stream_out2 133 143 }}} 134 144 135 145 * 檢查結果 146 136 147 {{{ 137 148 $ haddop dfs -cat stream_out2/part-00000 | more