Changes between Version 6 and Version 7 of Streaming


Ignore:
Timestamp:
Sep 13, 2009, 4:03:43 PM (15 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Streaming

    v6 v7  
    1010 * 最簡單的透過shell執行stream的map reduce:
    1111{{{
    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
    1416}}}
    15    * 輸出的結果為:
     17
     18 * 輸出的結果為:
     19
     20{{{
     21$ bin/hadoop fs -cat stream-out1/part-00000
     22}}}
     23
    1624||     行    ||   字數    ||     字元數     ||
    17 || 2910628 || 24507806 || 143451003||
    18 
     25|| 1528 || 4612 || 48644 ||
     26       
    1927
    2028 = 用php實做mapReduce =