Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

how to re-create the fsimage_xxxxxxx files on namenode

avatar

we have two namenode machines ( are part of HDP cluster in ambari )

because electricity failure , we notices about the following

on one name node we see that fsimage_xxxx files are missing
while on the second namenode they are exists

is it possible to re-create them on the faulty name node


example on the bad node

ls /hadoop/hdfs/namenode/current | grep fsimage_

no output


on the good namenode

ls /hadoop/hdfs/namenode/current | grep fsimage_
fsimage_0000000000044556627
fsimage_0000000000044556627.md5
fsimage_0000000000044577059
fsimage_0000000000044577059.md5


the status for now is that name-node service not startup successfully from ambari

and the logs from the faulty name-node say like this:

 

ERROR namenode.NameNode (NameNode.java:main(1783)) - Failed to start namenode.
java.io.FileNotFoundException: No valid image files found

Michael-Bronson
10 REPLIES 10

avatar

Dear Shelton

 

this is very very strange that some application / other delete the files ( there are 4 files while 2 of them represented the md5 chksum )

 

what we are very worry from this case , is that we actuality not know the real reason why files deleted 

and we cant reverse and see whats happens

 

 

Michael-Bronson