Changes between Version 1 and Version 2 of III110813/Lab9
- Timestamp:
- Oct 21, 2011, 3:06:23 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
III110813/Lab9
v1 v2 16 16 17 17 {{{ 18 ~$ hadoop fs -put /etc/hadoop/conf lab 7_input19 ~$ hadoop jar hadoop-streaming.jar -input lab 7_input -output lab7_out1 -mapper /bin/cat -reducer /usr/bin/wc20 ~$ hadoop fs -cat lab 7_out1/part-0000018 ~$ hadoop fs -put /etc/hadoop/conf lab9_input 19 ~$ hadoop jar hadoop-streaming.jar -input lab9_input -output lab9_out1 -mapper /bin/cat -reducer /usr/bin/wc 20 ~$ hadoop fs -cat lab9_out1/part-00000 21 21 }}} 22 22 … … 28 28 ~$ chmod a+x streamingMapper.sh 29 29 ~$ chmod a+x streamingReducer.sh 30 ~$ hadoop jar hadoop-streaming.jar -input lab 7_input -output lab7_out2 -mapper streamingMapper.sh -reducer streamingReducer.sh -file streamingMapper.sh -file streamingReducer.sh31 ~$ hadoop fs -cat lab 7_out2/part-0000030 ~$ hadoop jar hadoop-streaming.jar -input lab9_input -output lab9_out2 -mapper streamingMapper.sh -reducer streamingReducer.sh -file streamingMapper.sh -file streamingReducer.sh 31 ~$ hadoop fs -cat lab9_out2/part-00000 32 32 }}} 33 33 … … 102 102 * 開始執行 103 103 {{{ 104 ~$ hadoop jar hadoop-streaming.jar -mapper mapper.php -reducer reducer.php -input lab 7_input -output lab7_out3 -file mapper.php -file reducer.php104 ~$ hadoop jar hadoop-streaming.jar -mapper mapper.php -reducer reducer.php -input lab9_input -output lab9_out3 -file mapper.php -file reducer.php 105 105 }}} 106 106 * 檢查結果 107 107 {{{ 108 ~$ hadoop fs -cat lab 7_out3/part-00000108 ~$ hadoop fs -cat lab9_out3/part-00000 109 109 }}}