Hadoop 2.2.0 編譯

younghuijun發表於2015-01-09

1, 安裝所需軟體
  1. cmake
  2. lzo-devel
  3. zlib-devel
  4. gcc
  5. autoconf
  6. automake
  7. libtool
  8. ncurses-devel
  9. openssl-deve
sudo yum install cmake lzo-devel zlib-devel gcc autoconf automake libtool ncurses-devel openssl-deve

2, 安裝maven

3, 安裝protocol buffer
驗證:protoc --version

4, 給Hadoop打patch, 因為Hadoop2.2.0有一個bug

Patch: https://issues.apache.org/jira/browse/HADOOP-10110

cd haddop-2.2.0-src
wget https://issues.apache.org/jira/secure/attachment/12614482/HADOOP-10110.patch; patch -p0 < HADOOP-10110.patch 

5, 編譯Hadoop
mvn package -Pdist,native -DskipTests -Dtar

具體更詳細的編譯說明請參考大神:iloveyin
http://blog.csdn.net/iloveyin/article/details/28909771


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24867427/viewspace-1395682/,如需轉載,請註明出處,否則將追究法律責任。

相關文章