Resources are low on NN. Please add or free up more resources then turn off safe mode manually

错误描述

向 HDFS 上传文件时,提示下面错误:

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.

解决

可能是磁盘快占满了,执行下面命令查看:

查看磁盘占用大小:

df -hl
du -sh /

原文出处:https://www.malaoshi.top/show_1IX2FzsdlA9g.html