hadoop退出安全模式Name node is in safe mode

Posted alexzhang92

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了hadoop退出安全模式Name node is in safe mode相关的知识,希望对你有一定的参考价值。

18/01/12 09:04:34 INFO fs.TrashPolicyDefault: Namenode trash configuration: Deletion interval = 0 minutes, Emptier interval = 0 minutes.
rm: Cannot delete /spark/data/netflow/201801120325.txt. Name node is in safe mode.

hadoop 处于安全模式,所以需要退出安全模式,一般以如下方法可以解决:

hadoop dfsadmin -safemode leave

实在不行还可以用如下方式:

hdfs dfsadmin -safemode leave

 

以上是关于hadoop退出安全模式Name node is in safe mode的主要内容,如果未能解决你的问题,请参考以下文章

hadoop上传文件失败报错(put: Cannot create file/eclipse.desktop._COPYING_. Name node is in safe mode.)

报错: Name node is in safe mode

Name node is in safe mode.

hadoop之Name node is in safe mode

手动退出hadoop安全模式

hive启动报错 Name node is in safe mode.