Changes between Version 1 and Version 2 of III110813/Lab9


Ignore:
Timestamp:
Oct 21, 2011, 3:06:23 PM (13 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • III110813/Lab9

    v1 v2  
    1616
    1717{{{
    18 ~$ hadoop fs -put /etc/hadoop/conf lab7_input
    19 ~$ hadoop jar hadoop-streaming.jar -input lab7_input -output lab7_out1 -mapper /bin/cat -reducer /usr/bin/wc
    20 ~$ hadoop fs -cat lab7_out1/part-00000
     18~$ 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
    2121}}}
    2222
     
    2828~$ chmod a+x streamingMapper.sh
    2929~$ chmod a+x streamingReducer.sh
    30 ~$ hadoop jar hadoop-streaming.jar -input lab7_input -output lab7_out2 -mapper streamingMapper.sh -reducer streamingReducer.sh -file streamingMapper.sh -file streamingReducer.sh
    31 ~$ hadoop fs -cat lab7_out2/part-00000
     30~$ 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
    3232}}}
    3333
     
    102102 * 開始執行
    103103{{{
    104 ~$ hadoop jar hadoop-streaming.jar -mapper mapper.php -reducer reducer.php -input lab7_input -output lab7_out3 -file mapper.php -file reducer.php
     104~$ hadoop jar hadoop-streaming.jar -mapper mapper.php -reducer reducer.php -input lab9_input -output lab9_out3 -file mapper.php -file reducer.php
    105105}}}
    106106 * 檢查結果
    107107{{{
    108 ~$ hadoop fs -cat lab7_out3/part-00000
     108~$ hadoop fs -cat lab9_out3/part-00000
    109109}}}