Install Oracle JDK 7
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
use command
sudo find -name java
you could find JAVA path would be /usr/lib/jvm/java-7-oracle/
Download apache2.6.4
go to hadoop main page http://hadoop.apache.org/
find out Download link under
Getting Started
we choose Version 2.6.4 binary Tarball
we see a list of download options, choose one.
for example:
cd /usr/local
sudo wget http://mirror.bit.edu.cn/apache/hadoop/common/hadoop-2.6.4/hadoop-2.6.4.tar.gz
sudo rm hadoop-2.6.4.tar.gz
sudo mv hadoop-2.6.4 hadoop
sudo chown -R username:username hadoop # replace username with your user name
Mainly follow Documentation page
http://hadoop.apache.org/docs/r2.6.4/hadoop-project-dist/hadoop-common/SingleCluster.html
one thing for reminder: you only have to change JAVA_PATH in the hadoop-env.sh file.