Changes between Version 13 and Version 14 of Streaming


Ignore:
Timestamp:
Sep 13, 2009, 8:12:45 PM (15 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Streaming

    v13 v14  
    2525 || -reducer $REDUCER || 設定reducer程式 ||
    2626
    27  = 用 shell實做mapReduce =
     27 = Stream Example 1 : 用 Shell =
    2828
    2929此範例以 cat 當mapper , wc 作 reducer
     
    4545|| 1528 || 4612 || 48644 ||
    4646
    47  = 用php實做mapReduce =
    48  * [http://www.hadoop.tw/2008/09/php-hadoop.html 用 "單機" 跟 "PHP" 開發 Hadoop 程式] from Hadoop Taiwan User Group
     47 = Stream Example 2 : 用 PHP =
     48[http://www.hadoop.tw/2008/09/php-hadoop.html 參考自 Hadoop Taiwan User Group ]
     49
     50 * 安裝php的執行方法
    4951{{{
    5052$ cd /opt/hadoop/
     
    5254}}}
    5355
     56 * 編輯 mapper 的 php 程式
    5457{{{
    5558$ gedit mapper.php
    5659}}}
     60
     61內容為 :
    5762
    5863{{{
     
    8388}}}
    8489
     90 * 編輯 reduce 的php程式
    8591{{{
    8692$ gedit reducer.php
    8793}}}
     94
     95內容為:
    8896
    8997{{{
     
    117125}}}
    118126
     127 * 開始執行
     128
    119129{{{
    120130$ chmod 755 *.php
     
    124134
    125135 * 檢查結果
    126 
    127136{{{
    128137$ haddop dfs -cat stream_out2/part-00000 | more