847-505-9933 | +91 20 66446300 info@datametica.com

Safe Mode for Name Node

HDFS is a distributed file-system with a master-slave architecture, in which the NameNode is a master process while DataNodes are slave processes. A NameNode stores only the metadata about the file system while the DataNodes store the actual data. If the client needs to perform any file operations like read, delete, create etc. then the client has to get the metadata information from NameNode first.

When NameNode is started, all the metadata information in memory must be in a consistent state. Till the point the NameNode does not have all metadata, it must remain in Safe Mode. After it has acquired all the information needed for clients to carry out their work, NameNode will move to active mode.

We have illustrated the complete startup flow of the NameNode in the below flowchart.

Safe Mode for Name Node

Safe mode provides stability in a persistent state to allow the NameNode to enter the Active mode. Without Safe Mode, the NameNode would start in an inconsistent state. This would result in the unavailability of data to the clients and increase the overhead of replicating data on the data nodes in the HDFS cluster. Thus, Safe Mode is an important phase for the NameNode as well as the HDFS.



Alen Frantz (Big Data Engineer)

Payal Agrawal

Sachin Gupta




The Definitive Guide (3rd Edition) by Tom White

Showing 3 comments

  • eli stancheva

    I like it when folks get together and share thoughts.
    Great website, keep it up!

  • Violet

    Hello, I check your blog daily. Your story-telling style is awesome,
    keep it up!

  • amber fuse lenses oakley

    I’m curious to find out what blog platform you’re working with?
    I’m experiencing some minor security issues with my latest blog and I’d like to find
    something more safeguarded. Do you have any suggestions?

Leave a Comment



Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.