Administration Lab 5: MapReduce Filesystem Recovery
Restore the Last State of VM



for x in
/etc/init.d/hadoop-* ; do sudo $x stop; done
Procedure to Recover Namenode

sudo su hdfs

hadoop-0.20
namenode –importCheckpoint


mkdir ~/name
mv
/var/lib/hadoop-0.20/cache/hadoop/dfs/name/* ~/name
ls
/var/lib/hadoop-0.20/cache/hadoop/dfs/name

hadoop-0.20
namenode –importCheckpoint



for x in
/etc/init.d/hadoop-* ; do sudo $x start; done
Checking Filesystem
hadoop-0.20 fsck <file name>
-files -blocks -racks
No comments:
Post a Comment