Elasticity Task — LVM on Hadoop

Task 7.1: Elasticity Task

A. Integrating LVM with Hadoop and providing Elasticity to DataNode Storage.

vim /etc/hadoop/core-site.xml
vim /etc/hadoop/hdfs-site.xml
hadoop-daemon.sh start namenode
vim /etc/hadoop/core-site.xml
vim /etc/hadoop/hdfs-site.xml
hadoop-daemon.sh start datanode
hadoop dfsadmin -report
fdisk -l
pvcreate /dev/sdb
pvcreate /dev/sdc
pvdisplay
vgcreate test /dev/sdb /dev/sdc
vgdisplay
lvcreate --size 15G --name lv1 test
lvdisplay
mkfs.ext4 /dev/test/lv1
mount /dev/test/lv1  /dn1

df -lh
hadoop-daemon.sh stop datanode

hadoop-daemon.sh start datanode

jps
hadoop dfsadmin -report

ARTH Lerner