How To Install Hadoop Latest Version 2.6.0 on Ubantu Step by Step

Our HadoopTpoint App is now available in google play store,please rate and comment it in play store : W3Schools

How To Install Hadoop Latest Version 2.6.0 on Ubantu Step by Step

Hadoop 2.6.0 Installation Environment

  • Ubuntu 14.04
  • Hadoop 2.6.0
  • OpenJDK 1.7
  • SSH

MAKE SURE THAT THE USER HAS ALL THE PRIVILEGES IN ORDER TO AVOID ANY DENIED PERMISSIONS

Installing JAVA JDK

Better to login as Root

Install Java Runtime –  sudo apt-get install default-jre

Install Java JDK (OpenJDK v 1.7 or newer)

sudo apt-get update

sudo apt-get install default-jdk

Checking Java verison

Java –version

Install SSH

sudo apt-get install ssh

ssh-keygen -t dsa -P ” -f ~/.ssh/id_dsa

cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

For Detail Installation Process Click Here ——> SSH Installation on Ubantu

Download and Install Hadoop

wget http://apache.tradebit.com/pub/hadoop/common/current/hadoop-2.6.0.tar.gz

Extract File

tar xfz hadoop-2.6.0.tar.gz

Move to local (Runing Directory)

mv hadoop-2.6.0 /usr/local/hadoop

Edit Hadoop Configuration files

First get the correct Java Path 

update-alternatives –config java

/usr/lib/jvm/java-7-openjdk-i386 /jre/bin/java

How To Install Hadoop Latest Version 2.6.0 on Ubantu Step by Step

We have to modify the following files

~/.bashrc

/usr/local/hadoop/etc/hadoop/hadoop-env.sh

/usr/local/hadoop/etc/hadoop/core-site.xml

/usr/local/hadoop/etc/hadoop/yarn-site.xml

/usr/local/hadoop/etc/hadoop/mapred-site.xml

/usr/local/hadoop/etc/hadoop/hdfs-site.xml

 

 bashrc

hadoop configuration files

hadoop conf folder configurations

Change Folder Permissions

Replace qursaan: with your hadoop users to be the owner of the folder

sudo chown qursaan:qursaan -R /usr/local/hadoop

sudo chown qursaan:qursaan -R /usr/local/hadoop_store

also give the folder the full permission

sudo chmod -R 777 /usr/local/hadoop

sudo chmod -R 777 /usr/local/hadoop_store

Format the new hadoop file system from /usr/local/hadoop/bin

hadoop namenode -format

Now Start the hadoop

start-dfs.sh

start-yarn.sh

or Start-all.sh

Web User Interface

ResourceManager @- http://localhost:8088/

NameNode @- http://localhost:50070/

Speak Your Mind

*