1. 必要的安裝
sudo apt-get install subversion
sudo apt-get install maven
sudo apt-get install maven2
sudo apt-get install ivy
sudo apt-get install autoconf automake libtool
2. 使用svn下載Hadoop-1.0.2源碼
svn checkout http://svn.apache.org/repos/asf/hadoop/common/tags/release-1.0.2/
3. 進入目錄後
ant
4. 編譯結果
...
compile-ant-tasks:
[javac] /home/lucktroy/download/boboo/release-1.0.2/build.xml:2201: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 5 source files to /home/lucktroy/download/boboo/release-1.0.2/build/ant
compile:
BUILD SUCCESSFUL
Total time: 40 seconds