How to Install Single Node Cluster Hadoop on Windows?
Last Updated :
06 Oct, 2021
Hadoop Can be installed in two ways. The first is on a single node cluster and the second way is on a multiple node cluster. Let's see the explanation of both of them. But in this section will cover the installation part on a single node cluster. Let's discuss one by one.
Single Node Cluster and Multi-Node Cluster:
- Single Node Cluster - It Has one DataNode running and setting up all the NameNode, DataNode, Resource Manager, and NodeManager on a single machine. This is used for studying and testing purposes.
Multi-Node Cluster - Has more than one DataNode running and each DataNode is running on different machines.
Installation steps on a Single Node Cluster
Steps for Installing Single Node Cluster Hadoop on Windows as follows.
Prerequisite:
- JAVA-Java JDK (installed)
- HADOOP-Hadoop package (Downloaded)
Step 1: Verify the Java installed
javac -version
Step 2: Extract Hadoop at C:\Hadoop
Step 3: Setting up the HADOOP_HOME variable
Use windows environment variable setting for Hadoop Path setting.
Step 4: Set JAVA_HOME variable
Use windows environment variable setting for Hadoop Path setting.
Step 5: Set Hadoop and Java bin directory path
Step 6: Hadoop Configuration :
For Hadoop Configuration we need to modify Six files that are listed below-
1. Core-site.xml
2. Mapred-site.xml
3. Hdfs-site.xml
4. Yarn-site.xml
5. Hadoop-env.cmd
6. Create two folders datanode and namenode
Step 6.1: Core-site.xml configuration
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost:9000</value>
</property>
</configuration>
Step 6.2: Mapred-site.xml configuration
<configuration>
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
</configuration>
Step 6.3: Hdfs-site.xml configuration
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.namenode.name.dir</name>
<value>C:\hadoop-2.8.0\data\namenode</value>
</property>
<property>
<name>dfs.datanode.data.dir</name>
<value>C:\hadoop-2.8.0\data\datanode</value>
</property>
</configuration>
Step 6.4: Yarn-site.xml configuration
<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>
</configuration>
Step 6.5: Hadoop-env.cmd configuration
Set "JAVA_HOME=C:\Java" (On C:\java this is path to file jdk.18.0)
Step 6.6: Create datanode and namenode folders
1. Create folder "data" under "C:\Hadoop-2.8.0"
2. Create folder "datanode" under "C:\Hadoop-2.8.0\data"
3. Create folder "namenode" under "C:\Hadoop-2.8.0\data"

Step 7: Format the namenode folder
Open command window (cmd) and typing command "hdfs namenode –format"
Step 8: Testing the setup
Open command window (cmd) and typing command "start-all.cmd"
Step 8.1: Testing the setup:
Ensure that namenode, datanode, and Resource manager are running
Step 9: Open: http://localhost:8088
Step 10:
Open: http://localhost:50070
Similar Reads
How to Find the Wi-Fi Password Using CMD in Windows Forgotten your Wi-Fi password? Don't worry you're not alone! Whether you're trying to connect a new phone, set up a smart TV, or help a friend get online, remembering complex Wi-Fi passwords can be a headache. Luckily, you don't need to reset your router or dig through old notebooks. Windows has a h
7 min read
How to Install PIP on Windows PIP stands for "Preferred Installer Program" or "Pip Installs Packages" and is a standard package manager for Python that enables users to install and manage additional libraries and dependencies not included in the standard Python library. To use PIP, you must install Python on your Windows machine
6 min read
Hadoop - Architecture As we all know Hadoop is a framework written in Java that utilizes a large cluster of commodity hardware to maintain and store big size data. Hadoop works on MapReduce Programming Algorithm that was introduced by Google. Today lots of Big Brand Companies are using Hadoop in their Organization to dea
6 min read
How to Install YouTube App for Windows Installing the YouTube app on Windows 10 and 11 can enhance your experience with a wide range of contents. Besides, there is no as such official YouTube application available on the Microsoft Store, but you can still install YouTube apps in your Windows 10 or 11 system. This article will provide you
6 min read
Download and Install Java Development Kit (JDK) on Windows, Mac, and Linux Java Development Kit (JDK) is one of the most important tools for developers who use it to build, compile, and run Java applications. It does not matter if you are a beginner or an experienced programmer; installing JDK is the first step towards working with Java development. We can download JDK to
7 min read
How to Install Jupyter Notebook on Windows Jupyter Notebook is one of the most powerful used among professionals for data science, and machine learning to perform data analysis and data visualization and much more.If you're a Windows user and looking for different ways to install Jupyter Notebook, then this guide will help you out by using A
4 min read
Hadoop Ecosystem Overview: Apache Hadoop is an open source framework intended to make interaction with big data easier, However, for those who are not acquainted with this technology, one question arises that what is big data ? Big data is a term given to the data sets which can't be processed in an efficient manner
6 min read
How to install Python on Windows? Python is a high-level programming language that has become increasingly popular due to its simplicity, versatility, and extensive range of applications. The process of How to install Python in Windows, operating system is relatively easy and involves a few uncomplicated steps. This article aims to
5 min read
How to Install Node.js on Windows Installing Node.js on Windows is a straightforward process, but it's essential to follow the right steps to ensure smooth setup and proper functioning of Node Package Manager (NPM), which is crucial for managing dependencies and packages. This guide will walk you through the official site, NVM, Wind
6 min read
How to Install WhatsApp on Linux WhatsApp Messenger is like a global chat hub, letting you send text messages, make voice or video calls, and share photos, documents, or locations securely, per WhatsApp Official. Launched in 2009 and acquired by Meta in 2014, itâs now a cornerstone of communication, with end-to-end encryption ensur
5 min read