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 Install Burp Suite on Windows?
Burp Suite can be understood as a web vulnerability scanner. Â It is a collection of different tools that are brought together in a single application for performing security testing of Web applications. Burp Suite is widely used by penetration testers to test and identify different vulnerabilities t
3 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 MongoDB Enterprise on Windows
MongoDB is a free, open-source, cross-platform, document-oriented database. The MongoDB Enterprise Edition is a commercial version of MongoDB used for enterprise-scale operations. In this guide, we will learn how to install MongoDB Enterprise edition on a Windows System. We have provided a detailed
2 min read
How to Install Crystal Report on Windows?
Crystal Report is used for generating analytical reports from Oracle, SQL Server, MySQL, Microsoft Excel, etc. it is basically a business intelligence application. The knowledge of this tool helps businesses to develop advanced-level reports.In this article, we will look into the process of installi
1 min read
How to Install Cmder on Windows?
Cmder is a command prompt user interface. It is often used in windows machines mainly. Generally, users like to interact with graphical user interfaces. As in command prompt in windows are not that graphical. Understanding some concepts of the GUI method is most important nowadays. Cmder is one of t
2 min read
How to Install MongoDB on Windows?
Looking to install MongoDB on your Windows machine? This detailed guide will help you install MongoDB on Windows (Windows Server 2022, 2019, and Windows 11) quickly and efficiently. Whether youâre a developer or a beginner, follow this guide for seamless MongoDB installation, including setting up en
6 min read
How to Install Git on Windows Command Line?
Git is an open-source and free, decentralized version control system designed to handle projects of all sizes with speed and efficiency. Basically, it is a software tracking application that is commonly used to monitor projects across several teams. The best way of downloading and installing Git on
3 min read
How to Install and Use NVM on Windows
NVM or Node Version Manager is a command-line tool that allows developers to manage multiple versions of Node.js on a single machine. This function offers the flexibility to work on different projects and versions of Node.js. In this guide, we'll walk you through the steps to install and use NVM on
3 min read
How to Install Graphical Network Simulator 3 on Windows?
Graphical Network Simulator-3 also known as GNS3 is a network software emulator. It was released in 2008. It is a free and open-source software which can be run on different operating systems like Linux, Unix, windows, mac, etc. It was developed by Jeremy Grossmann, Dominik Ziajka and Piotr PÄkala.
3 min read
How to Install MongoDB Bi Connector on Windows?
The MongoDB BI Connector enables us to create SQL queries for MongoDB data. Relational BI solutions such as Tableau, MicroStrategy, and Qlik may be used to view and report on our MongoDB Enterprise data. The BI connector acts as a bridge between a MongoDB reporting tool and an instance, converting q
1 min read