Changes between Version 3 and Version 4 of Hadoop_Lab3


Ignore:
Timestamp:
Sep 13, 2009, 2:56:55 PM (15 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Hadoop_Lab3

    v3 v4  
    66[[PageOutline]]
    77
    8  == 1 Hadoop運算命令 grep =
     8 = 1 Hadoop運算命令 grep
    99 
    1010 * grep 這個命令是擷取文件裡面特定的字元,在Hadoop example中此指令可以擷取文件中有此指定文字的字串,並作計數統計
     
    5555
    5656{{{
    57   /opt/hadoop$ bin/hadoop fs -ls lab3_out1
    58   /opt/hadoop$ bin/hadoop fs -cat lab3_out1/part-00000
     57$ bin/hadoop fs -ls lab3_out1
     58$ bin/hadoop fs -cat lab3_out1/part-00000
    5959}}}
    6060
     
    114114 }}}
    115115
    116  == 2 Hadoop運算命令 WordCount ==
     116 = 2 Hadoop運算命令 WordCount =
    117117 
    118118 * 如名稱,WordCount會對所有的字作字數統計,並且從a-z作排列
     
    122122 }}}
    123123 
    124  檢查輸出結果的方法同2.1的方法
     124 檢查輸出結果的方法同之前方法
     125
    125126{{{
    126   /opt/hadoop$ bin/hadoop fs -ls lab3_out2
    127   /opt/hadoop$ bin/hadoop fs -cat lab3_out2/part-00000
     127$ bin/hadoop fs -ls lab3_out2
     128$ bin/hadoop fs -cat lab3_out2/part-00000
    128129}}}
    129130
    130  === 2.1 更多運算命令 ===
     131 = 3. 使用網頁Gui瀏覽資訊 =
     132 
     133 * [http://localhost:50030 透過 Map/Reduce Admin 來察看程序運作狀態]
     134
     135 * [http://localhost:50070 透過 NameNode 察看運算結果]
     136
     137 = 4. 更多運算命令 =
    131138 
    132139 可執行的指令一覽表:
     
    147154
    148155 請參考 [http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/examples/package-summary.html org.apache.hadoop.examples]
    149 
    150 
    151  == 3. 使用網頁Gui瀏覽資訊 ==
    152  
    153  * [http://localhost:50030 Map/Reduce Administration]
    154  * [http://localhost:50070 NameNode ]