Skip to content

Instantly share code, notes, and snippets.

@nojima
Last active August 29, 2015 13:55
Show Gist options
  • Save nojima/8763503 to your computer and use it in GitHub Desktop.
Save nojima/8763503 to your computer and use it in GitHub Desktop.

Build Hadoop

Install packages

sudo apt-get install wget build-essential openjdk-7-jdk cmake maven pkg-config libssl-dev

Install protobuf

wget https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz
tar xf protobuf-2.5.0.tar.gz
cd protobuf-2.5.0
./configure
make
make check
sudo make install
sudo ldconfig
cd java
mvn test
sudo mvn install

Build hadoop

wget http://ftp.tsukuba.wide.ad.jp/software/apache/hadoop/common/hadoop-2.2.0/hadoop-2.2.0-src.tar.gz
tar xf hadoop-2.2.0-src.tar.gz
cd hadoop-2.2.0-src
mvn package -Pdist,native -DskipTests -Dtar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment