spark-submit提交到yarn上报错:
705013485_0008. Name node is in safe mode.
Resources are low on NN. Please add or free up more resources then turn off safe mode manually. NOTE: If you turn off safe mode before adding resources, the NN will immediately return to safe mode. Use “hdfs dfsadmin -safemode leave” to turn safe mode off.
705013485_0008. Name node is in safe mode.
Resources are low on NN. Please add or free up more resources then turn off safe mode manually. NOTE: If you turn off safe mode before adding resources, the NN will immediately return to safe mode. Use "hdfs dfsadmin -safemode leave" to turn safe mode off.
- 原因
磁盘空间不足
- 解决办法
1.,查看磁盘使用情况: df -h
2.查看哪个空间占用空间大: du -sh /*,依次执行,找到没有的文件删除,或者进行迁移
3.执行:hdfs dfsadmin -safemode leave