Changes between Version 3 and Version 4 of waue/2010/0211


Ignore:
Timestamp:
Feb 12, 2010, 11:16:17 AM (15 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • waue/2010/0211

    v3 v4  
    2727= 2. 安裝 =
    2828
    29   *  安裝 hadoop-0.20.1 於 /nfs/opt 目錄下
    30   *  安裝 eclipse 各版本套件於 /nfs/opt  目錄底下
     29  *  本篇安裝 hadoop-0.20.1 於 /opt 目錄下 (hadoop_home = /opt/hadoop-0.20.1)
     30  *  本篇安裝 eclipse 各版本套件於 /opt  目錄底下 (eclipse_home = /opt/eclipse)
    3131
    3232= 3. 設定要編譯的 Eclipse 版本 =
    3333 
    34   請選擇任一個版本來實做
     34  若你的eclipse 版本是3.3 ,可以不用設定,甚至可以直接使用 [http://hadoop-eclipse-plugin.googlecode.com/files/hadoop-0.20.1-eclipse-plugin.jar] 即可
    3535
    36      == 3.A Eclipse 3.3 ==
    37     為預設值免設定此步驟
    3836
    39     == 3.B Eclipse  3.4 ==
     37  ==  Eclipse 版本為 3.4 or 3.5 ==
    4038
    41         * 需要改 /nfs/opt/hadoop-0.20.1/src/contrib/build-contrib.xml
     39   * 需要改 /opt/hadoop-0.20.1/src/contrib/build-contrib.xml
    4240{{{
    4341#!text
    44     <property name="eclipse.home" location="/nfs/opt/eclipse34/"/>
     42    <property name="eclipse.home" location="/opt/eclipse/"/>
    4543}}}
    4644
    47         * 修改 /nfs/opt/hadoop-0.20.1/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/launch/HadoopApplicationLaunchShortcut.java
     45   * 修改 /opt/hadoop-0.20.1/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/launch/HadoopApplicationLaunchShortcut.java
    4846{{{
    4947#!java
     
    5250}}}
    5351
    54    == 3.C Eclipse  3.5  ==
    55 
    56         * 需要改/nfs/opt/hadoop-0.20.1/src/contrib/build-contrib.xml
    57 {{{
    58 #!text
    59     <property name="eclipse.home" location="/nfs/opt/eclipse35/"/>
    60 }}}
    61 
    62         * 修改 /nfs/opt/hadoop-0.20.1/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/launch/HadoopApplicationLaunchShortcut.java
    63 {{{
    64 #!java
    65     import org.eclipse.jdt.debug.ui.launchConfigurations.JavaApplicationLaunchShortcut;
    66     //import org.eclipse.jdt.internal.debug.ui.launcher.JavaApplicationLaunchShortcut;
    67 }}}
    6852
    6953 = 4. 編譯與封裝 =
    7054
    7155{{{
    72 $ cd /nfs/opt/hadoop-0.20.1/
     56$ cd /opt/hadoop-0.20.1/
    7357$ ant compile
    74 $ ln -sf /nfs/opt/hadoop-0.20.1/docs /nfs/opt/hadoop-0.20.1/build/docs
     58$ ln -sf /opt/hadoop-0.20.1/docs /opt/hadoop-0.20.1/build/docs
    7559$ ant package
    7660}}}
    7761
    78 如果沒有出錯的話,檔案出現在 /nfs/opt/hadoop-0.20.1/build/contrib/eclipse-plugin/hadoop-0.20.2-dev-eclipse-plugin.jar
     62如果沒有出錯的話,檔案出現在 /opt/hadoop-0.20.1/build/contrib/eclipse-plugin/hadoop-0.20.2-dev-eclipse-plugin.jar
    7963
    80 將這個檔案(看要不要改名成 hadoop-0.20.1-eclipse-plugin.jar 皆可)放到你的 /nfs/opt/eclipse/plugin 內就可以囉!
     64將這個檔案(看要不要改名成 hadoop-0.20.1-eclipse-plugin.jar 皆可)放到你的 /opt/eclipse/plugin 內就可以囉!