Skip to content

Instantly share code, notes, and snippets.

@richard-to
Created June 22, 2013 23:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richard-to/5843052 to your computer and use it in GitHub Desktop.
Save richard-to/5843052 to your computer and use it in GitHub Desktop.
Hadoop 1.1 installation instructions for Ubuntu 12 using Debian package
# Need this installed to use `add-apt-repository`
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo update-java-alternatives -s java-7-oracle
# Download and install Hadoop 1.1 from one of the mirrors.
wget http://apache.mirrors.tds.net/hadoop/common/hadoop-1.1.2/hadoop_1.1.2-1_x86_64.deb
sudo dpkg -i hadoop_1.1.2-1_x86_64.deb
# The debian version that gets installed creates a /etc/conf/hadoop-env.sh. This will need to be modified:
# Change JAVA_HOME to use the version of Java we installed. By default it uses `java-6-sun`
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
# Next we need to increase the default heap size. It defaults to 128m which is too low and you will run out of heap space.
export HADOOP_CLIENT_OPTS="-Xmx1024m $HADOOP_CLIENT_OPTS"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment