Hadoop _ How to install in 5 Steps in Windows 10 _ by Shashank Singhal _ Analytics Vidhya _ Medium
Hadoop _ How to install in 5 Steps in Windows 10 _ by Shashank Singhal _ Analytics Vidhya _ Medium
Search Write
Be part of a better internet. Get 20% off membership for a limited time
314 16
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 1/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
1. Prerequisites
1. Hardware Requirement
* RAM — Min. 8GB, if you have SSD in your system then 4GB RAM would
also work.
* CPU — Min. Quad core, with at least 1.80GHz
download the version supported by your system x86 or x64 for all the
software.
Once we have Downloaded all the above software, we can proceed with next
steps in installing the Hadoop.
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 3/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 4/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
Now we can organize our Hadoop installation, we can create a folder and
move the final extracted file in it. For Eg. :-
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 5/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
I have placed my Hadoop in D: drive you can use C: or any other drive
also.
To edit environment variables, go to Control Panel > System > click on the
“Advanced system settings” link
Alternatively, We can Right click on This PC icon and click on Properties and
click on the “Advanced system settings” link
Or, easiest way is to search for Environment Variable in search bar and there
you GO…😉
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 6/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 7/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 8/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 9/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 10/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 11/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 12/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
Note:- If you want the path to be set for all users you need to select “New” from
System Variables.
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 13/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 14/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
Click OK and OK. & we are done with Setting Environment Variables.
Now we need to verify that what we have done is correct and reflecting.
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 15/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
echo %JAVA_HOME%
echo %HADOOP_HOME%
echo %PATH%
We need to create a folder data in the hadoop directory, and 2 sub folders
namenode and datanode
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 16/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 17/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
These folders are important because files on HDFS resides inside the
datanode.
Now we need to edit the following config files in hadoop for configuring it :-
(We can find these files in Hadoop -> etc -> hadoop)
* core-site.xml
* hdfs-site.xml
* mapred-site.xml
* yarn-site.xml
* hadoop-env.cmd
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 18/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost:9000</value>
</property>
</configuration>
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.namenode.name.dir</name>
<value>PATH~1\namenode</value>
<final>true</final>
</property>
<property>
<name>dfs.datanode.data.dir</name>
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 19/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
<value>PATH~2\datanode</value>
<final>true</final>
</property>
</configuration>
<configuration>
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
</configuration>
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 20/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
<configuration>
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
</property>
<property>
<name>yarn.nodemanager.auxservices.mapreduce.shuffle.class</name>
<value>org.apache.hadoop.mapred.ShuffleHandler</value>
</property>
<!-- Site specific YARN configuration properties -->
</configuration>
set JAVA_HOME=%JAVA_HOME%
OR
set JAVA_HOME="C:\Program Files\Java\jdk1.8.0_221"
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 21/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
Last step in configuring the hadoop is to download and replace the bin
folder.
* Go to this GitHub Repo and download the bin folder as a zip.
* Extract the zip and copy all the files present under bin folder to
%HADOOP_HOME%\bin
Note:- If you are using different version of Hadoop then please search for its
respective bin folder and download it.
5. Testing Setup
Congratulation..!!!!!
We are done with the setting up the Hadoop in our System.
Before starting hadoop we need to format the namenode for this we need to
start a NEW Command Prompt and run below command
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 22/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
Note:- This command formats all the data in namenode. So, its advisable to use
only at the start and do not use it every time while starting hadoop cluster to
avoid data loss.
start-all.cmd
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 23/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
This will open 4 new cmd windows running 4 different Daemons of hadoop:-
* Namenode
* Datanode
* Resourcemanager
* Nodemanager
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 24/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
Note:- We can verify if all the daemons are up and running using jps
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 25/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
6.2 Resourcemanger
Open localhost:8088 in a browser tab to check resourcemanager details.
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 26/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
6.3 Datanode
Open localhost:50075 in a browser tab to checkout datanode.
7. Congratulations..!!!!🎉
Congratulation! We have successfully installed Hadoop.
There are chances that some of us might have faced some issues… Don’t
worry its most likely due to some small miss or incompatible software. If you
face any such issue please visit all the steps once again carefully and verify
for the right software versions.
If you still can’t get Hadoop up and running, Don’t hesitate describe your
problem below in the comment section.
8. Special Note 🙏
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 27/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
Don’t forget to Like and share it with your friends and colleagues.
Also, don’t miss the opportunity to share your views and suggestions for this
or new articles.
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 28/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 29/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
See all from Shashank Singhal See all from Analytics Vidhya
Lists
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 31/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
Jul 24 48 Apr 2 2
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 32/33
8/5/24, 11:03 AM Hadoop : How to install in 5 Steps in Windows 10 | by Shashank Singhal | Analytics Vidhya | Medium
Apache Spark is a powerful open-source Install Apache spark easily with step by step
distributed computing system that provides… detailed guide given with pictures to make…
Mar 9 7 Feb 9 41
Help Status About Careers Press Blog Privacy Terms Text to speech Teams
https://medium.com/analytics-vidhya/hadoop-how-to-install-in-5-steps-in-windows-10-61b0e67342f8 33/33