What is the purpose of the 'safemode' in HDFS?

Answer

A state where the NameNode does not allow modifications to the filesystem or block reports until it has sufficient DataNode block reports

Explanation

HDFS enters 'safemode' during startup. In this state, the NameNode collects block reports from DataNodes to ensure all blocks are accounted for. No modifications to the filesystem are allowed until safemode is exited, ensuring data consistency.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list