Hello Friends...
In this blog I am explaining the procedure to install hadoop single node cluster in Linux. I installed hadoop 2.6.0 on Ubuntu 12.04. Hadoop installation needs basic working knowledge of Linux. I hope you have basic working knowledge of linux or have a look on this post for basic understanding of Linux first: Linux administration.
The steps for installing hadoop are as following:
1. First open the terminal by Ctrl+Alt+T.
2. Run the update command: sudo apt-get update
First it will prompt for your password, and then it may take time depending upon your internet
speed and system update status.
3. Then install java in your sytem using $ sudo apt-get install openjdk-6-jdk
Note: I used java version 6, you can opt for higher version 7 or 8.
To change java version in your system you can run the command:
$ update-alternatives --config java
4. check java version by using: $ java -version
5. Add a new group named hadoop: $ sudo addgroup hadoop
6. Then make a new user hduser in that group: $ sudo adduser –ingroup hadoop hduser
It may ask for some details like name, address, etc. Fill these details although you may skip some of these.
7. Now for communication install the ssh: $ sudo apt-get install ssh
8. Generate the RSA public private key pair using SSH and move this to the authorized_keys as shown in following steps:
9. Add localhost as secure channel using ssh: $ ssh localhost
10. Now install the freely available hadoop version from any site ( I downloaded 2.6.0)
11. Untar the downloaded package using the command: $ tar xvzf hadoop-2.6.0.tar.gz
Now make the hadoop directory inside /usr/local by the command: mkdir -p /usr/local/hadoop
12. Now change directory to this folder using: $ cd hadoop-2.6.0
13. Now move all content of this directory to the /usr/local/hadoop
14. This may throw an error like:
hduser is not in the sudoers file. This incident will be reported......
15. To deal with this error add hduser to the sudoers file as shown
16. Now again move the folder as tried previously and change its ownership to the hduser as shown:
17. Now we are almost done, and just need to change the configuration file. The following files
needs to be changed
1. ~/.bashrc
2. hadoop-env.sh
3. core-site.xml
4. mapred-site.xml
5. hdfs-site.xml
18. Open bashrc by the comand ( vim ~/.bashrc) and add the hadoop path to the directory as shown: [If vim is not already installed on your system, install it by following command sudo apt-get install vim (after it again try to open the .bashrc file as shown:) vim ~/.bashrc
19. Now open ( $ vim /usr/local/hadoop/etc/hadoop/hadoop-env.sh) and update hadoop-env.sh as shown
20. Now First make a tmp directory as mentioned in the given step:
Now open and update core-site.xml as shown:
Now first copy content of mapred-site.xml.template to mapred-site.xml by the command shown in the image below:
21. Now open and update mapred-site.xml as shown (opening command in the image above and opened file and necessary changes in the image underneath)
22. Now make two directories for namenode and datanode and then make corresponding updates in hdfs-site.xml
Updates in hdfs-site.xml
23. Now we are done... !!
24. Lets start the hadoop now,
25. first format the namenode
26. Then start the hadoop:
27.Change the directory where start-all.sh file resides:
28. Now start hadoop : $ start-all.sh and check the status of the node using the command $ jps
29. Lets see the web interface of Namenode and Secondary namenodes:
Namenode at port 50070 of localhost:
We are done.... All components are working fine.
30. Last one.... Dont forget to leave hadoop cluster without stoping the services by the following commands:
If you wish to make a multinode hadoop cluster. Please refer the instructions given at following post hadoop multinode installation
*****************************************************************************
Now to run the first program on your hadoop cluster Please follow this blog: Running first program in hadoop
For configuring hbase in your hadoop cluster visit this post
For configuration of pig in your hadoop cluster go to this pig-installation-page
For more frequent updates about Big data Analytics using hadoop please visit and like: DataioticsHub
Thanks and Regards
In this blog I am explaining the procedure to install hadoop single node cluster in Linux. I installed hadoop 2.6.0 on Ubuntu 12.04. Hadoop installation needs basic working knowledge of Linux. I hope you have basic working knowledge of linux or have a look on this post for basic understanding of Linux first: Linux administration.
The steps for installing hadoop are as following:
1. First open the terminal by Ctrl+Alt+T.
2. Run the update command: sudo apt-get update
First it will prompt for your password, and then it may take time depending upon your internet
speed and system update status.
3. Then install java in your sytem using $ sudo apt-get install openjdk-6-jdk
Note: I used java version 6, you can opt for higher version 7 or 8.
To change java version in your system you can run the command:
$ update-alternatives --config java
4. check java version by using: $ java -version
5. Add a new group named hadoop: $ sudo addgroup hadoop
6. Then make a new user hduser in that group: $ sudo adduser –ingroup hadoop hduser
It may ask for some details like name, address, etc. Fill these details although you may skip some of these.
7. Now for communication install the ssh: $ sudo apt-get install ssh
8. Generate the RSA public private key pair using SSH and move this to the authorized_keys as shown in following steps:
9. Add localhost as secure channel using ssh: $ ssh localhost
10. Now install the freely available hadoop version from any site ( I downloaded 2.6.0)
11. Untar the downloaded package using the command: $ tar xvzf hadoop-2.6.0.tar.gz
Now make the hadoop directory inside /usr/local by the command: mkdir -p /usr/local/hadoop
12. Now change directory to this folder using: $ cd hadoop-2.6.0
13. Now move all content of this directory to the /usr/local/hadoop
14. This may throw an error like:
hduser is not in the sudoers file. This incident will be reported......
15. To deal with this error add hduser to the sudoers file as shown
16. Now again move the folder as tried previously and change its ownership to the hduser as shown:
17. Now we are almost done, and just need to change the configuration file. The following files
needs to be changed
1. ~/.bashrc
2. hadoop-env.sh
3. core-site.xml
4. mapred-site.xml
5. hdfs-site.xml
18. Open bashrc by the comand ( vim ~/.bashrc) and add the hadoop path to the directory as shown: [If vim is not already installed on your system, install it by following command sudo apt-get install vim (after it again try to open the .bashrc file as shown:) vim ~/.bashrc
19. Now open ( $ vim /usr/local/hadoop/etc/hadoop/hadoop-env.sh) and update hadoop-env.sh as shown
20. Now First make a tmp directory as mentioned in the given step:
Now open and update core-site.xml as shown:
Now first copy content of mapred-site.xml.template to mapred-site.xml by the command shown in the image below:
21. Now open and update mapred-site.xml as shown (opening command in the image above and opened file and necessary changes in the image underneath)
22. Now make two directories for namenode and datanode and then make corresponding updates in hdfs-site.xml
Updates in hdfs-site.xml
23. Now we are done... !!
24. Lets start the hadoop now,
25. first format the namenode
26. Then start the hadoop:
27.Change the directory where start-all.sh file resides:
28. Now start hadoop : $ start-all.sh and check the status of the node using the command $ jps
Errorfree start of the hadoop environment will show Namenode, SecondaryNameNode,
NodeManager, DataNode, ResourceManager and jps itself as running processes. So we are done.29. Lets see the web interface of Namenode and Secondary namenodes:
Namenode at port 50070 of localhost:
We are done.... All components are working fine.
30. Last one.... Dont forget to leave hadoop cluster without stoping the services by the following commands:
If you wish to make a multinode hadoop cluster. Please refer the instructions given at following post hadoop multinode installation
*****************************************************************************
Now to run the first program on your hadoop cluster Please follow this blog: Running first program in hadoop
For configuring hbase in your hadoop cluster visit this post
For configuration of pig in your hadoop cluster go to this pig-installation-page
For more frequent updates about Big data Analytics using hadoop please visit and like: DataioticsHub
Thanks and Regards
It was really a nice article and i was really impressed by reading this Hadoop Admin Online Training India
ReplyDeleteWoah this blog is wonderful i like studying your posts. Keep up the great work! You understand, lots of persons are hunting around for this info, you could help them greatly.
ReplyDeleteBig data training in Marathahalli
Big data training in btm
Big data training in Rajajinagar
Big data training in bangalore
Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.
ReplyDeletepython training in chennai | python training in bangalore
python online training | python training in pune
python training in chennai | python training in bangalore
python training in tambaram |
Thanks for the informative article. This is one of the best resources I have found in quite some time. Nicely written and great info. I really cannot thank you enough for sharing.
ReplyDeletejava training in chennai | java training in bangalore
java online training | java training in pune
java training in chennai | java training in bangalore
java training in tambaram | java training in velachery
Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.
ReplyDeleteDevops Training in Chennai
Devops Training in Bangalore
Devops Training in pune
Devops training in tambaram
Devops training in velachery
really Good blog post.provided a helpful information.I hope that you will post more updates like this Big Data Hadoop Online Course Bangalore
ReplyDeleteNice tips. Very innovative... Your post shows all your effort and great experience towards your work Your Information is Great if mastered very well.
ReplyDeletepython training institute in chennai
python training in velachery
python training institute in chennai
This is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.I like it and help me to development very well.Thank you for this brief explanation and very nice information.Well, got a good knowledge.
ReplyDeletejava training in chennai | java training in USA
selenium training in chennai
Well somehow I got to read lots of articles on your blog. It’s amazing how interesting it is for me to visit you very often.
ReplyDeletepython training in annanagar
python training in chennai
python training in chennai
python training in Bangalore
ReplyDeleteI would assume that we use more than the eyes to gauge a person's feelings. Mouth. Body language. Even voice. You could at least have given us a face in this test.
Data science course in tambaram | Data Science course in anna nagar
Data Science course in chennai | Data science course in Bangalore
Data Science course in marathahalli | Data Science course in btm
I found this informative and interesting blog so i think so its very useful and knowledge able.I would like to thank you for the efforts you have made in writing this article.
ReplyDeleteangularjs Training in btm
angularjs Training in electronic-city
angularjs online Training
angularjs Training in marathahalli
angularjs interview questions and answers
Some us know all relating to the compelling medium you present powerful steps on this blog and therefore strongly encourage contribution from other ones on this subject while our own child is truly discovering a great deal. Have fun with the remaining portion of the year.
ReplyDeletenebosh course in chennai
Excellent content!!! After reading your blog, I am curious to read the next part of the blog.
ReplyDeleteSelenium Training in Chennai
Selenium Training
iOS Training in Chennai
Digital Marketing Training in Chennai
core java training in chennai
Selenium Interview Questions and Answers
Future of testing professional
French Classes in Chennai
iOS Training Institutes in Chennai
Nice, Waiting for your next Update!
ReplyDeleteJava Training in Chennai
Python Training in Chennai
IOT Training in Chennai
Selenium Training in Chennai
Data Science Training in Chennai
FSD Training in Chennai
MEAN Stack Training in Chennai
It is really a great work and the way in which you are sharing the knowledge is excellent.
ReplyDeletebig data analytics company in chennai
I am really interested to continue reading your blog. You have shared valid info. Waiting for more updates from you.
ReplyDeleteEnglish Speaking Classes in Mumbai
English Speaking Course in Mumbai
Best English Speaking Classes in Mumbai
Spoken English Classes in Mumbai
English Classes in Mumbai
I was curious if you ever considered changing the layout of your site? It’s very well written;
ReplyDeleteDevops Training in Chennai | Devops Training Institute in Chennai
I appreciate your efforts because it conveys the message of what you are trying to say. It's a great skill to make even the person who doesn't know about the subject could able to understand the subject . Your blogs are understandable and also elaborately described. I hope to read more and more interesting articles from your blog. All the best.
ReplyDeleteangularjs online training
apache spark online training
informatica mdm online training
devops online training
aws online training
Your story is truly inspirational and I have learned a lot from your blog. Much appreciated.
ReplyDeleteMicrosoft Azure online training
Selenium online training
Java online training
Java Script online training
Share Point online training
wonderful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. This article resolved my all queries
ReplyDeleteAWS training in chennai | AWS training in anna nagar | AWS training in omr | AWS training in porur | AWS training in tambaram | AWS training in velachery
"It's really good. Thank you for your information. Keep Blogging! .
ReplyDeleteDigital Marketing Training Course in Chennai | Digital Marketing Training Course in Anna Nagar | Digital Marketing Training Course in OMR | Digital Marketing Training Course in Porur | Digital Marketing Training Course in Tambaram | Digital Marketing Training Course in Velachery
"
Awesome..You have clearly explained …Its very useful for me to know about new things..Thanks for your info...
ReplyDeleteandroid training in chennai
android online training in chennai
android training in bangalore
android training in hyderabad
android Training in coimbatore
android training
android online training
It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
ReplyDeletesap training in chennai
sap training in tambaram
azure training in chennai
azure training in tambaram
cyber security course in chennai
cyber security course in tambaram
ethical hacking course in chennai
ethical hacking course in tambaram
Nice Post. The concepts are explained very clearly. easily clarifying the queries for the Beginners.
ReplyDeleteweb designing training in chennai
web designing training in annanagar
digital marketing training in chennai
digital marketing training in annanagar
rpa training in chennai
rpa training in annanagar
tally training in chennai
tally training in annanagar
Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.
ReplyDeleteweb designing training in chennai
web designing training in omr
digital marketing training in chennai
digital marketing training in omr
rpa training in chennai
rpa training in omr
tally training in chennai
tally training in omr
This post is so helpfull and informative.keep updating with more information...
ReplyDeleteonline marketing
Definition Of Digital Marketing
Great post. keep sharing such a worthy information.
ReplyDeleteRPA Training in Chennai
RPA Training Online
RPA Training In Bangalore