Contribute the Desired amount of Storage of DataNode to the Hadoop Cluster
Step 1: — Add one extra hard disk with OS
Step 2 : — For check all connected HDD write CMD fdisk -l
Step 3 : — For create new partition select new add HDD
Step 4 : — Press p for new primary partition
Step 5 : — Give starting sector for partition
Step 6 : — Give size of partition
+5G for give partition size 5GiB
+100MB for give partition size 100MiB
Step 7 : — Format created partition with ext4 extension
Step 8 : — Mount partition with directory name data_node because we use this directory as data node in Hadoop Cluster
Step 9 : — Do entry of mount in /etc/fstab file for make partition permanent
Step 10 : — Download and install jdk and Hadoop in both master and slave
Configure Master for Hadoop cluster
Step 11 : — Create a directory for name node
Step 12 : — Configure /etc/hadoop/hdfs-site.xml file
Step 13 : — Configure /etc/hadoop/core-site.xml
Step 14 : — Format name node
Step 14 : — Start service of name node
Configure NameNode or slave
Step 15: — Configure /etc/hadoop/hdfs-site.xml
Step 16 : — Configure /etc/hadoop/core-site.xml
Step 17 : — Start services of datanode
Final Output
Thank you