Compile Hadoop-1.0.2

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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章