Hadoop Cluster contribution

Himanshi Kabra
3 min readSep 7, 2022

In a Hadoop cluster, how to contribute limited/specific amount of storage as slave to the cluster?

We can easily do this by using the Concept of Partitions on the storage device of the Data Node with a specific amount of storage we want to contribute to master(NameNode).

Hadoop Cluster

🎯Step 1: In this task first we will attach external 10 GB Harddisk to DataNode(Slave)

As you can see above we have added 10 GB HD to Slave.

We can also confirm it by running the command

#fdisk -l

🎯Step 2 : As the storage device which I attached is new , So to use these we have to follow three steps : -

  1. Create Physical Partition
  2. Format
  3. Mount

✔️Creating Physical Partition :

So we have created partition /dev/sdb1

✔️Formatting the partition /dev/sdb1

✔️Mount the partition /dev/sbd1 to directory /dn

We can clearly see that it is successfully mounted on/dn directory

🎯Step 3 : Now open the hdfs-site.xml file and provide these /dn directory which is to be contributed to Master

🎯Step 4 : Start the datanode daemon Service

#hadoop-daemon.sh start datanode

🎯Step 5 : To Check the Report how much capacity is configured

#hadoop dfsadmin -report

We can clearly see that the limited 10 GB storage is Configured to the Master.

These simple way we can use to contribute limited/specific amount of storage.

Thank You !!!!!

--

--