Archilo: helping architecture work become visible.

Explore the ecosystem →

Updates & announcements

Archilo: helping architecture work become visible.
Archilo: helping architecture work become visible.

A focused platform for architecture portfolios, research, talent and creative opportunity. Built for architects, students and studios.

Enally announcement
Enally: building useful things, together.

A founder-led ecosystem connecting products, services, knowledge, community and opportunities. One belief, expressed in different ways.

Enally announcement
Build with us: internships, contributors and partnerships.

Practical ways for young builders, contributors and domain experts to learn through real products and useful responsibility.

Archilo growing steadily
Archilo growing steadily

Architecture portfolios and research pages now serve 5,000+ creative professionals.

Enally announcement
Humble campus expansion

Verified student communities now active across multiple campuses with 2K+ members.

Faaho partner beta live
Faaho partner beta live

Zero-brokerage living discovery is now available in partner beta. Technology by Enally.

Enally announcement
Enally Labs launched

Applied AI experiments, internal agents and prototype products now live under Labs.

Enally announcement
Blog redesigned

The Enally blog now brings practical guides, opportunities and ecosystem knowledge together.

Enally announcement
Services: SEO to AIO

Five-layer visibility services now available — SEO, AEO, GEO, SXO and AI Optimization.

Enally announcement
Build with us program

Internships, campus ambassadors and contributor roles open for builders who want real ownership.

Enally announcement
Company website rebuilt

Enally.in redesigned with improved performance, accessibility and dark theme support.

Data Science

How To Install Hadoop On Kali Linux Quickly

Learn how to install and configure Hadoop on Kali Linux with this step-by-step guide. From setting up Java and SSH to configuring Hadoop and running HDFS commands, this tutorial covers everything you need for a seamless single-node Hadoop setup.

How To Install Hadoop On Kali Linux Quickly
What you'll learn

Learn how to install and configure Hadoop on Kali Linux with this step-by-step guide. From setting up Java and SSH to configuring Hadoop and running HDFS commands, this tutorial covers everything you need for a seamless single-node Hadoop setup.

Jump to the guide

How To Install Hadoop On Kali Linux Quickly

Kali


🛠 Step 1: Install Java (OpenJDK 11)

Hadoop requires Java to function. Follow these steps to install Java.

1️⃣ Update the Package List

sudo apt update && sudo apt upgrade -y

2️⃣ Install OpenJDK 11

sudo apt install openjdk-11-jdk -y

3️⃣ Verify Java Installation

java -version
javac -version

Expected output:

openjdk version "11.0.xx"
OpenJDK Runtime Environment...

🔐 Step 2: Setup SSH for Hadoop

Hadoop requires passwordless SSH access.

1️⃣ Install SSH Server

sudo apt install openssh-server -y

2️⃣ Start and Enable SSH Service

sudo systemctl start ssh
sudo systemctl enable ssh

3️⃣ Create SSH Key for Passwordless Authentication

ssh-keygen -t rsa -P "" -f ~/.ssh/id_rsa

4️⃣ Add Key to Authorized Keys

cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys

5️⃣ Test SSH

ssh localhost

If prompted, type yes and press Enter.

📂 Step 3: Download and Install Hadoop

1️⃣ Download Hadoop

wget https://downloads.apache.org/hadoop/common/hadoop-3.3.6/hadoop-3.3.6.tar.gz

2️⃣ Extract and Move Hadoop

tar -xvzf hadoop-3.3.6.tar.gz
sudo mv hadoop-3.3.6 /usr/local/hadoop
sudo chown -R $USER:$USER /usr/local/hadoop

📝 Step 4: Configure Hadoop Environment Variables

1️⃣ Edit ~/.bashrc

nano ~/.bashrc

2️⃣ Add the Following Lines

export HADOOP_HOME=/usr/local/hadoop
export HADOOP_INSTALL=$HADOOP_HOME
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export YARN_HOME=$HADOOP_HOME
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export PATH=$PATH:$HADOOP_HOME/sbin:$HADOOP_HOME/bin
export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib/native"
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64

3️⃣ Apply Changes

source ~/.bashrc

⚙️ Step 5: Configure Hadoop XML Files

1️⃣ Edit core-site.xml

nano $HADOOP_HOME/etc/hadoop/core-site.xml

Add:

<property>
    <name>fs.defaultFS</name>
    <value>hdfs://localhost:9000</value>
</property>

2️⃣ Edit hdfs-site.xml

nano $HADOOP_HOME/etc/hadoop/hdfs-site.xml

Add:

<property>
    <name>dfs.replication</name>
    <value>1</value>
</property>
<property>
    <name>dfs.namenode.name.dir</name>
    <value>file:///usr/local/hadoop/data/namenode</value>
</property>
<property>
    <name>dfs.datanode.data.dir</name>
    <value>file:///usr/local/hadoop/data/datanode</value>
</property>

3️⃣ Configure mapred-site.xml

cp $HADOOP_HOME/etc/hadoop/mapred-site.xml.template $HADOOP_HOME/etc/hadoop/mapred-site.xml
nano $HADOOP_HOME/etc/hadoop/mapred-site.xml

Add:

<property>
    <name>mapreduce.framework.name</name>
    <value>yarn</value>
</property>

4️⃣ Configure yarn-site.xml

nano $HADOOP_HOME/etc/hadoop/yarn-site.xml

Add:

<property>
    <name>yarn.nodemanager.aux-services</name>
    <value>mapreduce_shuffle</value>
</property>
<property>
    <name>yarn.nodemanager.env-whitelist</name>
    <value>JAVA_HOME,HADOOP_COMMON_HOME,HADOOP_HDFS_HOME,HADOOP_CONF_DIR,HADOOP_MAPRED_HOME</value>
</property>

🖥️ Step 6: Format HDFS and Start Hadoop

1️⃣ Format the Hadoop Namenode

hdfs namenode -format

2️⃣ Start Hadoop Services

start-dfs.sh
start-yarn.sh

3️⃣ Check Running Hadoop Processes

jps

Expected output:

NameNode
DataNode
SecondaryNameNode
ResourceManager
NodeManager
Jps

🌐 Step 7: Verify Hadoop Web Interfaces

If these pages load successfully, Hadoop is running correctly. 🎉

🛠 Step 8: Run HDFS Commands (Test Hadoop)

1️⃣ Create a Directory in HDFS

hdfs dfs -mkdir /test

2️⃣ Upload a File to HDFS

echo "Hello Hadoop" > testfile.txt
hdfs dfs -put testfile.txt /test/

3️⃣ List Files in HDFS

hdfs dfs -ls /test/

Expected output:

Found 1 items
-rw-r--r--   1 hadoop supergroup        12 2025-03-07 10:00 /test/testfile.txt

🔄 Restarting Hadoop

If needed, restart Hadoop services:

stop-dfs.sh
stop-yarn.sh
start-dfs.sh
start-yarn.sh

Check if all services are running:

jps

🎉 Congratulations!

You have successfully installed and configured Hadoop on Kali Linux in a single-node mode! 🚀🔥 Now, you can start experimenting with MapReduce, HDFS, and YARN.










Frequently asked questions

Learn how to install and configure Hadoop on Kali Linux with this step-by-step guide. From setting up Java and SSH to configuring Hadoop and running HDFS commands, this tutorial covers everything you need for a seamless single-node Hadoop setup.

This guide covers 🛠 Step 1: Install Java (OpenJDK 11), 1️⃣ Update the Package List, 2️⃣ Install OpenJDK 11, 3️⃣ Verify Java Installation, 🔐 Step 2: Setup SSH for Hadoop, 1️⃣ Install SSH Server, 2️⃣ Start and Enable SSH Service, 3️⃣ Create SSH Key for Passwordless Authentication, 4️⃣ Add Key to Authorized Keys, 5️⃣ Test SSH, 📂 Step 3: Download and Install Hadoop, 1️⃣ Download Hadoop, 2️⃣ Extract and Move Hadoop, 📝 Step 4: Configure Hadoop Environment Variables, 1️⃣ Edit ~/.bashrc, 2️⃣ Add the Following Lines, 3️⃣ Apply Changes, ⚙️ Step 5: Configure Hadoop XML Files, 1️⃣ Edit core-site.xml, 2️⃣ Edit hdfs-site.xml, 3️⃣ Configure mapred-site.xml, 4️⃣ Configure yarn-site.xml, 🖥️ Step 6: Format HDFS and Start Hadoop, 1️⃣ Format the Hadoop Namenode, 2️⃣ Start Hadoop Services, 3️⃣ Check Running Hadoop Processes, 🌐 Step 7: Verify Hadoop Web Interfaces, 🛠 Step 8: Run HDFS Commands (Test Hadoop), 1️⃣ Create a Directory in HDFS, 2️⃣ Upload a File to HDFS, 3️⃣ List Files in HDFS, 🔄 Restarting Hadoop, 🎉 Congratulations!.

The estimated reading time is 3 min read.

Keep learning

Related articles