richard-to
6/22/2013 - 11:16 PM

Hadoop 1.1 installation instructions for Ubuntu 12 using Debian package

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"