Reputation: 7
What is the role of a Secondary namenode, if at all Namenode fails ?
Upvotes: 0
Views: 247
Reputation: 3374
Before going into this, i will explain about roles of NN and SNN.
NameNode: It contains metadata of datanodes, directory tree structure, fsimage
and edit logs related to your entire cluster
SecondaryNameNode: It periodically collect fsimage
and edit logs from NN and then merge those into new fsimage
file, again it will push back into NN to decrease the size of NN metadata
So if NN fails
Upvotes: 1
Reputation: 3421
Perfect answer by @mobin-ranjbar
Also, this link will help you understand "For what purpose the Secondary Namenode is NOT meant?" ;)
Upvotes: 0
Reputation: 1360
Its role will be accelerate the startup progress. It is a helper node for NameNode and It is not the replacement or backup for the Namenode.
Upvotes: 0