Changes between Version 3 and Version 4 of waue/2010/0211
- Timestamp:
- Feb 12, 2010, 11:16:17 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
waue/2010/0211
v3 v4 27 27 = 2. 安裝 = 28 28 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) 31 31 32 32 = 3. 設定要編譯的 Eclipse 版本 = 33 33 34 請選擇任一個版本來實做34 若你的eclipse 版本是3.3 ,可以不用設定,甚至可以直接使用 [http://hadoop-eclipse-plugin.googlecode.com/files/hadoop-0.20.1-eclipse-plugin.jar] 即可 35 35 36 == 3.A Eclipse 3.3 ==37 為預設值免設定此步驟38 36 39 == 3.B Eclipse 3.4==37 == Eclipse 版本為 3.4 or 3.5 == 40 38 41 * 需要改 /nfs/opt/hadoop-0.20.1/src/contrib/build-contrib.xml39 * 需要改 /opt/hadoop-0.20.1/src/contrib/build-contrib.xml 42 40 {{{ 43 41 #!text 44 <property name="eclipse.home" location="/ nfs/opt/eclipse34/"/>42 <property name="eclipse.home" location="/opt/eclipse/"/> 45 43 }}} 46 44 47 * 修改 /nfs/opt/hadoop-0.20.1/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/launch/HadoopApplicationLaunchShortcut.java45 * 修改 /opt/hadoop-0.20.1/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/launch/HadoopApplicationLaunchShortcut.java 48 46 {{{ 49 47 #!java … … 52 50 }}} 53 51 54 == 3.C Eclipse 3.5 ==55 56 * 需要改/nfs/opt/hadoop-0.20.1/src/contrib/build-contrib.xml57 {{{58 #!text59 <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.java63 {{{64 #!java65 import org.eclipse.jdt.debug.ui.launchConfigurations.JavaApplicationLaunchShortcut;66 //import org.eclipse.jdt.internal.debug.ui.launcher.JavaApplicationLaunchShortcut;67 }}}68 52 69 53 = 4. 編譯與封裝 = 70 54 71 55 {{{ 72 $ cd / nfs/opt/hadoop-0.20.1/56 $ cd /opt/hadoop-0.20.1/ 73 57 $ ant compile 74 $ ln -sf / nfs/opt/hadoop-0.20.1/docs /nfs/opt/hadoop-0.20.1/build/docs58 $ ln -sf /opt/hadoop-0.20.1/docs /opt/hadoop-0.20.1/build/docs 75 59 $ ant package 76 60 }}} 77 61 78 如果沒有出錯的話,檔案出現在 / nfs/opt/hadoop-0.20.1/build/contrib/eclipse-plugin/hadoop-0.20.2-dev-eclipse-plugin.jar62 如果沒有出錯的話,檔案出現在 /opt/hadoop-0.20.1/build/contrib/eclipse-plugin/hadoop-0.20.2-dev-eclipse-plugin.jar 79 63 80 將這個檔案(看要不要改名成 hadoop-0.20.1-eclipse-plugin.jar 皆可)放到你的 / nfs/opt/eclipse/plugin 內就可以囉!64 將這個檔案(看要不要改名成 hadoop-0.20.1-eclipse-plugin.jar 皆可)放到你的 /opt/eclipse/plugin 內就可以囉!