名称节点处于安全模式

名称节点处于安全模式

本文介绍了Fi-Ware Cosmos:名称节点处于安全模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图删除我的Cosmos账户中的一个文件夹
,但是我得到了SafeModeException:
$ b $ p $ hadoop fs - rmr / home /< user> / input



rmr:org.apache.hadoop.hdfs.server。 namenode.SafeModeException:
无法删除/ user /< user> / input。名称节点处于安全模式

解决方案

在启动期间,Namenode从fsimage加载文件系统状态并进行编辑日志文件。然后等待datanodes报告它们的块,以便它不会过早地开始复制块,尽管集群中已经存在足够的副本。在此期间,Namenode保持安全模式。 Namenode的安全模式本质上是HDFS群集的只读模式,它不允许对文件系统或块进行任何修改。这需要一些时间来完成上述操作,然后它会从同一节点出来。



如果仍然没有发生,或者您希望namenode离开安全模式然后给予

  hadoop dfsadmin --safemode leave 


I am trying to delete a folder in my Cosmos account,but I get the SafeModeException:

# hadoop fs -rmr /home/<user>/input

rmr: org.apache.hadoop.hdfs.server.namenode.SafeModeException:Cannot delete /user/<user>/input. Name node is in safe mode

解决方案

During start up Namenode loads the filesystem state from fsimage and edits log file. It then waits for datanodes to report their blocks so that it does not prematurely start replicating the blocks though enough replicas already exist in the cluster. During this time Namenode stays in safemode. A Safemode for Namenode is essentially a read-only mode for the HDFS cluster, where it does not allow any modifications to filesystem or blocks. And it takes some time to do above operations and after that it comes out of same node.

If still that doesn't happen or you want the namenode to leave safe mode then give

hadoop dfsadmin -safemode leave

这篇关于Fi-Ware Cosmos:名称节点处于安全模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 08:04