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
Related questions
What is the purpose of 'Sqoop job'?
View question →
What is a 'UDF' in Hive?
View question →
Which of the following is a common way to create an RDD in Spark?
View question →
Which type of Flume Source is used to capture output from a Unix command?
View question →
Which of the following describes the 'schema-on-write' approach?
View question →
What is the purpose of the 'Partitioner' in MapReduce?
View question →