Perform a Backup of the HDFS Metadata
Use the following procedure to backup HDFS metadata without affecting the availability of NameNode:
Make sure the Standby NameNode checkpoints the namespace to
fsimage_
once per hour.Deploy monitoring on both NameNodes to confirm that checkpoints are triggering regularly. This helps reduce the amount of missing transactions in the event that you need to restore from a backup containing only
fsimage
files without subsequent edit logs. It is good practice to monitor this anyway, because huge uncheckpointed edit logs can cause long delays after a NameNode restart while it replays those transactions.Back up the most recent “
fsimage_
*” and “fsimage_*.md5
” from the standby NameNode periodically. Try to keep the latest version of the file on another machine in the cluster.Back up the
VERSION
file from the standby NameNode.