After a node failure and restarting the HDFS, the NameNode reports:
节点发生故障并重新启动HDFS之后,NameNode报告:
“The reported blocks 1968810 needs additional 5071 blocks to reach the threshold 0.9990 of total blocks 1975856. Safe mode will be turned off automatically.”
“所报告的块1968810需要另外的5071个块才能达到总块1975856的阈值0.9990。安全模式将自动关闭。”
in the log.
在日志中。
Why this happens? And how to fix it?
为什么会这样? 以及如何解决?
About why the NameNode stays in the safe mode:
关于NameNode为何保持安全模式的原因:
At startup time, the namenode reads its namespace from disk (the
FSImage and edits files). This includes all the HDFS filenames and
block lists that it should know, but not the mappings of block
replicas to datanodes. Then it waits in safe mode for all or most of