Hadoop Distributed File System (HDFS) is a distributed file system used by big data applications. In this tutorial, we will learn how to install HDFS on Windows 11 machine.
Before starting the installation process, ensure that the following requirements are met:
Follow the below steps to install HDFS on Windows 11 machine:
Extract the downloaded Hadoop package to a folder on your machine. We will refer to this folder as HADOOP_HOME
in the subsequent installation steps.
To configure the environment variables, follow these steps:
Windows + S
key on your keyboard and search for "Environment Variables".Edit the system environment variables
.System Properties
window, click on the Environment Variables
button.Environment Variables
window, under System Variables section, click on the New
button.HADOOP_HOME
as the Variable name
and the path to extracted Hadoop folder as the Variable value
.%HADOOP_HOME%\bin
to the Path
variable value.To configure Hadoop, follow these steps:
HADOOP_HOME
directory using the command prompt.etc/hadoop
folder.core-site.xml
file in a text editor, and add the following code inside the <configuration>
tag:<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
</property>
hdfs-site.xml
file in a text editor, and add the following code inside the <configuration>
tag:<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.namenode.name.dir</name>
<value>file:/hadoop/namenode</value>
</property>
<property>
<name>dfs.datanode.data.dir</name>
<value>file:/hadoop/datanode</value>
</property>
<property>
<name>dfs.namenode.http-address</name>
<value>localhost:50070</value>
</property>
To start hadoop, follow these steps:
HADOOP_HOME
directory.bin\hadoop namenode -format
sbin\start-all.cmd
To test Hadoop, follow these steps:
HADOOP_HOME
directory.bin\hadoop fs -mkdir /test
bin\hadoop fs -put README.txt /test
/test
directory using the following command:bin\hadoop fs -ls /test
You should see README.txt
in the /test
directory.
Congratulations! You have successfully installed HDFS on your Windows 11 machine.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!