Hadoop Installation For Windows
Hadoop Installation For Windows
Hadoop Installation For Windows
In this blog you will understand how to download and install Hadoop for windows
Single node
Multi node
Single node cluster means only one DataNode running and setting up all the NameNode, DataNode, ResourceManager and NodeManager on
a single machine.
So for testing whether the Oozie jobs have scheduled all the processes like collecting, aggregating, storing and processing the data in a
proper sequence, we use single node cluster.
It can easily and efficiently test the sequential workflow in a smaller environment as compared to large environments which contains
terabytes of data distributed across hundreds of machines.
While in a Multi node cluster, there are more than one DataNode running and each DataNode is running on different machines. The multi node
cluster is practically used in organizations for analyzing Big Data. In real time when we deal with petabytes of data, it needs to be distributed
across hundreds of machines to be processed. Thus, here we use multi node cluster.
https://brain-mentors.com/hadoopinstallation/ 1/10
9/23/22, 10:23 AM Hadoop Installation for Windows – Brain Mentors
VIRTUAL BOX (For Linux): it is used for installing the operating system on it.
OPERATING SYSTEM: You can install Hadoop on Windows or Linux based operating systems. Ubuntu and CentOS are very commonly
used.
JAVA: You need to install the Java 8 package on your system.
HADOOP: You require Hadoop latest version
1. Install Java
Home Our Courses Blogs About Gallery Contact
https://www.oracle.com/java/technologies/javase-jdk8-downloads.html
2. Download Hadoop
– https://www.apache.org/dyn/closer.cgi/hadoop/common/hadoop-3.3.0/hadoop-3.3.0.tar.gz
– extract to C:\Hadoop
https://brain-mentors.com/hadoopinstallation/ 2/10
9/23/22, 10:23 AM Hadoop Installation for Windows – Brain Mentors
https://brain-mentors.com/hadoopinstallation/ 3/10
9/23/22, 10:23 AM Hadoop Installation for Windows – Brain Mentors
https://brain-mentors.com/hadoopinstallation/ 4/10
9/23/22, 10:23 AM Hadoop Installation for Windows – Brain Mentors
https://brain-mentors.com/hadoopinstallation/ 5/10
9/23/22, 10:23 AM Hadoop Installation for Windows – Brain Mentors
5. Configurations
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost:9000</value>
</property>
</configuration>
======================================================
Rename “mapred-site xml template” to “mapred-site xml” and edit this file C:/Hadoop-3 3 0/etc/hadoop/mapred-site xml paste xml code
https://brain-mentors.com/hadoopinstallation/ 6/10
9/23/22, 10:23 AM Hadoop Installation for Windows – Brain Mentors
Rename mapred site.xml.template to mapred site.xml and edit this file C:/Hadoop 3.3.0/etc/hadoop/mapred site.xml, paste xml code
and save this file.
<configuration>
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
</configuration>
======================================================
======================================================
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.namenode.name.dir</name>
<value>/hadoop-3.3.0/data/namenode</value>
</property>
<property>
<name>dfs.datanode.data.dir</name>
<value>/hadoop-3.3.0/data/datanode</value>
</property>
</configuration>
======================================================
<configuration>
https://brain-mentors.com/hadoopinstallation/ 7/10
9/23/22, 10:23 AM Hadoop Installation for Windows – Brain Mentors
g
<property>
</property>
<property>
<value>org.apache.hadoop.mapred.ShuffleHandler</value>
</property>
</configuration>
======================================================
======================================================
6. Hadoop Configurations
Download
https://github.com/brainmentorspvtltd/BigData_RDE/blob/master/Hadoop%20Configuration.zip
or (for hadoop 3)
https://github.com/s911415/apache-hadoop-3.1.0-winutils
C:\Hadoop-3.3.0\bin
– Format the NameNode
7. Testing
– type start-all.cmd
https://brain-mentors.com/hadoopinstallation/ 8/10
9/23/22, 10:23 AM Hadoop Installation for Windows – Brain Mentors
– type start-dfs.cmd
– type start-yarn.cmd
– Hadoop Namenode
– Hadoop datanode
https://brain-mentors.com/hadoopinstallation/ 9/10
9/23/22, 10:23 AM Hadoop Installation for Windows – Brain Mentors
Open: http://localhost:8088
Open: http://localhost:9870
======================================================
======================================================
Rohini Sector-7
Delhi-110085
https://brain-mentors.com/hadoopinstallation/ 10/10