Why hadoop cluster runs in safe mode?

后端 未结 1 1680
南旧
南旧 2021-01-23 13:12

When I start the hadoop cluster it runs in safe mode. Why the system enters in safe mode. Can anyone explain ?

相关标签:
1条回答
  • 2021-01-23 13:45

    Safe mode can happen in 2 ways.

    1. One is we can forcefully switch namenode to safemode
    2. Another is namenode automatically enters into the safemode because of some issues.

    We forcefully put namenode to safemode for performing maintenance activities. So that people will not write anything into the filesystem.

    In your case the 2nd thing happened. The possible reasons for namenode going to safemode are.

    • Unreported datanodes which will cause missing blocks and if the missing blocks are greater than a limit, namenode will go to safemode
    • If the storage of some datanodes got cleared accidently and if no blocks are available in the cluster for those data, namenode will go to safemode, because the metadata corresponding to those blocks will be present in the namenode and it will wait for those blocks to report. Till that time it can't provide this data to users, so it will be in safemode
    • If the storage of namenode is full. Then namenode will go to safemode
    • If the namenode lacks physical memory, it will enter into safemode
    • If the cluster storage is full, namenode will enter into safemode
    0 讨论(0)
提交回复
热议问题