wiki:waue/2009/0904

Version 1 (modified by waue, 15 years ago) (diff)

--

Hadoop Develop

目的

用eclipse編譯hadoop的src

環境

  • sun-java6-jdk
  • eclipse europa
  • 工作目錄於 /home/waue/workspace

方法

$ svn co http://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.18/

開啟 eclipse

file -> new -> project -> java project => next

project name: brance-0.18 create project from existing source : /home/waue/workspace/branch-0.18

=> finish

點選branch-0.18 右鍵 -> properties -> builders

  • import -> build.xml
  • 取消 java builder 的 勾
  • branch-0.18 build.xml 打勾
  • edit

properties -> java build path

  • source -> default output folder : branch-0.18/build

properties -> java compiler

  • compiler level : 6.0

=> ok

build.xml -> run as -> ant build ->

Attachments (12)

Download all attachments as: .zip