Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Backing up Namenode metadata

Backing up Namenode metadata

New Contributor

I became a hadoop ops two months ago. I want ask a basic question. please help me.

I am using hadoop-2.3cdh5.0.2. use yarn and build ha for hdfs.

in ha case, do we need backup namenode metadata? main fsimage?

use hdfs dfsadmin -fetchImage <local directory>?

if namenode(active and standby fsimage are both bad), how we use backup fsimage?

just copy the file to active namenode coresponding folder?

 

1 REPLY 1
Highlighted

Re: Backing up Namenode metadata

Expert Contributor
You don't need to manually back up the fsimage if you are trying to setup namenode ha. Namenode ha configuration will take care of that for you. However if you want to backup namenode metadata and maintain a copy for yourself you can always get that from namenode metadata directory, the dfsadmin command or you can also curl from nn web ui.
Em Jay