hadoop2.7.2 basic configuration (Pseudo-Distributed)

hadoop installation

#install java jdk:
yum install openjdk-7-jdk

#set java environment:
add this in ~./bashrc
export JAVA_HOME=/path/to/java
export PATH=PATH:JAVA_HOME/bin
export HADOOP_HOME=/usr/local/hadoop
export PATH=PATH:HADOOP_HOME/bin
export HADOOP_CONF_DIR=/usr/local/hadoop/etc/hadoop

source ~/.bashrc

#install hadoop:
1.wget http://apache.mirrors.tds.net/hadoop/common/hadoop-2.7.2/hadoop-2.7.2.tar.gz -P ~/Downloads
2.sudo tar zxvf ~/Downloads/hadoop-* -C /usr/local
3.sudo mv /usr/local/hadoop-* /usr/local/hadoop