Support Questions
Find answers, ask questions, and share your expertise

How to Restore Namenode from Backup in HA

Explorer

We have scheduled backup jobs running for directory defined in "dfs.namenode.name.dir" for both active and standby namenodes.

How can I restore a failed namenode using the backup.

Does copying the backups to directory defined in "dfs.namenode.name.dir" and changing the ownerships would do ?

Thank You

Nikhil

2 REPLIES 2

Re: How to Restore Namenode from Backup in HA

@Nikhil

Just copying the fsimage and fsimage.md5 to the "dfs.namenode.name.dir" directory with proper permissions should be enough to restore the NN from backup.

Re: How to Restore Namenode from Backup in HA

Explorer

@Sandeep Nemuri

Thanks for the info. Could you please help me with the below queries as well :

  • So is there anything to be done at the journal nodes end ?
  • If we are copying the namenode backups to a new server do we need to update any files other than fsimage and fsimage.md5 ?