Changes between Version 2 and Version 3 of NCHCCloudCourse100802/Lab3


Ignore:
Timestamp:
Aug 6, 2010, 11:29:59 AM (14 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NCHCCloudCourse100802/Lab3

    v2 v3  
    66[[PageOutline]]
    77
    8 = 1 Hadoop運算命令 grep = 
     8= Sample 1: grep = 
    99 
    10  * grep 這個命令是擷取文件裡面特定的字元,在Hadoop example中此指令可以擷取文件中有此指定文字的字串,並作計數統計
     10 * grep 這個命令是擷取文件裡面特定的字元,在Hadoop example中此指令可以擷取文件中有此指定文字的字串,並作計數統計[[BR]]grep is a command to extract specific characters in documents. In hadoop examples, you can use this command to extract strings match the regular expression and count for matched strings.
    1111 
    1212{{{
     
    1818}}}
    1919 
    20  運作的畫面如下:
     20 運作的畫面如下:[[BR]]You should see procedure like this:
    2121 
    2222{{{
     
    5252
    5353 
    54  * 接著查看結果
     54 * 接著查看結果[[BR]]Let's check the computed result of '''grep''' from HDFS :
    5555
    5656{{{
     
    5959}}}
    6060
    61  結果如下
     61 結果如下[[BR]]You should see results like this:
    6262
    6363{{{
     
    114114 }}}
    115115
    116 = 2 Hadoop運算命令 WordCount =
     116= Sample 2 : WordCount =
    117117 
    118  * 如名稱,WordCount會對所有的字作字數統計,並且從a-z作排列
     118 * 如名稱,WordCount會對所有的字作字數統計,並且從a-z作排列[[BR]]WordCount example will count each word shown in documents and sorting from a to z.
    119119 
    120120 {{{
     
    122122 }}}
    123123 
    124  檢查輸出結果的方法同之前方法
     124 檢查輸出結果的方法同之前方法[[BR]]Let's check the computed result of '''wordcount''' from HDFS :
    125125
    126126{{{
     
    129129}}}
    130130
    131 = 3. 使用網頁 GUI 瀏覽資訊 =
     131= Browsing MapReduce and HDFS via Web GUI =
    132132 
    133  * [http://localhost:50030 透過 Map/Reduce Admin 來察看程序運作狀態]
     133 * [http://localhost:50030 JobTracker Web Interface]
    134134
    135  * [http://localhost:50070 透過 NameNode 察看運算結果]
     135 * [http://localhost:50070 NameNode Web Interface]
    136136
    137 = 4. 更多運算命令 =
     137= More Examples =
    138138 
    139  可執行的指令一覽表:
     139 可執行的指令一覽表:[[BR]]Here is a list of hadoop examples :
    140140
    141141 || aggregatewordcount ||  An Aggregate based map/reduce program that counts the words in the input files. ||
     
    153153 || wordcount || A map/reduce program that counts the words in the input files. ||
    154154
    155  請參考 [http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/package-summary.html org.apache.hadoop.examples]
     155You could find more detail at [http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/package-summary.html org.apache.hadoop.examples]