Hadoop Single Node Installation Guide
Hadoop Single Node Installation Guide
Step1: Go to below link and download Ubuntu 12.04,
www.prwatech.in/online-support and unzip ubuntu .
Step 2: Open VMPlayer and click on Open a virtual Machine.
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/28.png)
Step3: Set the path of ubuntu in vm from your system , where you are extracted the ubuntu.After select the ubuntu .vmx file and click ok.
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/31.png)
Step4: Click on Play Virtual Machine.
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/41.png)
Step5: After click on paly virtual machine you will get below screen and next click on dashboard.
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/51.png)
Step6:After Click on Dashboard type terminal then you see the Terminal then Open that Terminal.
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/61.png)
Step7: Update the repository
Command : sudo apt-get update
If it asking for password is password
Username is username
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/71.png)
Once the Update is complete.
Step8: Install java use below command.
Command : sudo apt-get install openjdk-6-jdk
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/81.png)
Step9: Install openssh -server by using below command
Command : sudo apt-get install openssh-server
(Use of this ssh is we no need to give the password for every time when we start or stop the nodes)
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/91.png)
Step10: Download hadoop-1.2.0.tar.gz from below link.
www.prwatech.in/online-support and extract by using below command.
Command : tar -xvf hadoop-1.2.0.tar.gz
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/101.png)
Step11: Edit core-site.xml
Use below command
Command : sudo gedit hadoop-1.2.0/conf/core-site.xml
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/112.png)
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/121.png)
Step12: Edit hdfs-site.xml
Use below command for open file
Command: sudo gedit hadoop-1.2.0/conf/hdfs-site.xml
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/131.png)
In this You can add dfs.replication 1 dfs.permissions false
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/141.png)
Step13: Edit mapred-site.xml
Use below command to open this file
Command : sudo gedit hadoop-1.2.0/conf/mapred-site.xml
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/151.png)
This file you can add:
For job Tracker localhost address is 8021 mapred.job.tracker
localhost:8021
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/161.png)
First you make one directory
By using this command
Command : sudo mkdir hadoop
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/171.png)
After that move hadoop-1.2.0 to hadoop directory
Use below command
Command: sudo mv hadoop-1.2.0 /usr/lib/hadoop
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/181.png)
Open bashrc by using below command
Command : sudo gedit .bashrc
Set the path for JAVA_HOME and HADOOP_HOME in bashrc
Step14:Get your IP address
Command : ifconfig
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/201.png)
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/211.png)
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/221.png)
Moving the key to authorized key :
Use below command
Command : $HOME/.ssh/id_rsa.pub>>$HOME/.ssh/authorized_keys
Step16:
Configuration:
Add JAVA_HOME in hadoop-env.sh file
For open the file use below command
Command:sudo gedit hadoop-1.2.0/conf/hadoop-env.sh
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/231.png)
In hadoop-env.sh file you need to set the java path uncomment the export and add the java path
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/241.png)
![](https://web.archive.org/web/20170701092535im_/https://prwatech.in/wp-content/uploads/2014/06/271.png)