Recovering HDFS from Safe Mode After DataNode Failures
When a NameNode restarts, it enters safe mode to rebuild its understanding of block-to-DataNode mappings. If DataNodes don’t report their blocks quickly enough or some don’t come back online, the NameNode may stay stuck in safe mode with a message like: The reported blocks 1968810 needs additional 5071 blocks to reach the threshold 0.9990 of…
