Skip to content

Instantly share code, notes, and snippets.

@arwankhoiruddin
Last active January 23, 2018 04:22
Show Gist options
  • Save arwankhoiruddin/0772ebb457a74d66954e9c60256c67cc to your computer and use it in GitHub Desktop.
Save arwankhoiruddin/0772ebb457a74d66954e9c60256c67cc to your computer and use it in GitHub Desktop.
Prepare environment in Ubuntu so you can compile Hadoop on your own
# Oracle JDK 1.8 (preferred)
sudo apt-get purge openjdk*
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
# Maven
sudo apt-get -y install maven
# Native libraries
sudo apt-get -y install build-essential autoconf automake libtool cmake zlib1g-dev pkg-config libssl-dev
# ProtocolBuffer 2.5.0 (required)
wget https://launchpad.net/ubuntu/+archive/primary/+files/protobuf_2.5.0.orig.tar.gz
tar xvfz protobof_2.5.0.orig.tar.gz
cd protobuf-2.5.0
./configure
make
sudo make install
sudo ldconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment