Member since
09-15-2015
2
Posts
1
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
4358 | 09-15-2015 12:23 PM |
09-15-2015
12:23 PM
1 Kudo
You are correct about the Primary NameNode responsibilities. During an operation (such as creating or moving a file), it is recorded in the edit log. After the edit log has been modified, the NameNode also has an in-memory representation of the file system metadata is used to serve read requests. The edit log is rolled after every write. The fsimage file is a checkpoint of the filesystem metadata. It is not updated for every filesystem write operation because due to its size it would take a while and take resources. If the NameNode fails or restarts, the latest state of its metadata can be reconstructed by loading the fsimage from disk into memory and applying each of the operations in the edit log. However, the edits log can files grow very large and it would take a while for the NameNode to reconstruct lots of edit files. Meanwhile, the file system will be offline. The Secondary NameNode alleviates the issue by helping the primary produce fsimage check-points of the primary’s in-memory filesystem metadata. Below is an diagram for further clarification:
... View more