Changes between Version 32 and Version 33 of waue/2009/0617


Ignore:
Timestamp:
Jun 19, 2009, 2:57:57 PM (15 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • waue/2009/0617

    v32 v33  
    325325   * bin : 用來裝編譯後的class檔
    326326 * 如此一來原始碼和編譯檔就不會混在一起,對之後產生jar檔會很有幫助
    327  
    328  == 3.1  我的第一隻程式 ==
    329  
    330  === 3.1.1 mapper.java ===
     327 * 在這我們編輯一個範例程式 : WordCount
     328
     329 == 3.1 mapper.java ==
    331330 
    332331 1. new
     
    382381------------
    383382
    384 == 3.1.2 reducer.java ===
    385 
    386 1. new
     383== 3.2 reducer.java ==
     384
     385 1. new
    387386
    388387 * File -> new -> reducer
     
    390389
    391390-------
    392 2. create
     391 2. create
    393392[[Image(3-3.png)]]
    394393
     
    402401-----------
    403402
    404 3. modify
     403 3. modify
    405404 
    406405{{{
     
    433432----------
    434433
    435 === 3.1.3 WordCount.java (main function)===
    436 
    437 1. new
     434== 3.3 WordCount.java (main function) ==
     435
     436 1. new
    438437
    439438建立WordCount.java,此檔用來驅動mapper 與 reducer,因此選擇 Map/Reduce Driver
     
    441440------------
    442441
    443 2. create
     442 2. create
    444443
    445444{{{
     
    451450
    452451-------
    453 3. modify
     452 3. modify
    454453
    455454{{{
     
    506505}}}
    507506
    508  = 四、編譯 =
     507 = 四、測試範例程式 =
    509508 
    510509 * 由於hadoop 0.20 此版本的eclipse-plugin依舊不完整 ,如: