In this recipe, we will cover how to recover Namenode from corrupted
fsimage. During the Namenode startup, the
edits is check pointed into the
fsimage image . What if the image is corrupted? Will the Namenode boot up?
In a worst-case scenario, it recovers as much data as possible and removes any corrupted entries from metadata so that the Namenode can start up.
For this recipe, make sure you have completed the recipe on Hadoop cluster setup, Chapter 1, Hadoop Architecture and Deployment, and have at least HDFS running perfectly.
master1.cyrus.commaster node and switch to user