开发者

Hadoop job asks to disable safe node

Hadoop job is asking to disable safe mode manually. I开发者_如何学运维t says the resources are not available. How to disable safe mode?


You can leave safemode by using the following command:

hadoop dfsadmin -safemode leave

The documentation touches briefly on other safemode states. However, typically your Hadoop instance enters safe mode for a reason, so this may not be a permanent fix.


Not sure why you want to leave the safe mode manually. dfsadmin command can be used to enter/leave the safe mode manually. Normally the safe mode is entered manually when there should only be read-only operations to HDFS.

According to the Hadoop documentation

Safe mode is entered automatically at Namenode startup, and leaves safe mode automatically when the configured minimum percentage of blocks satisfies the minimum replication condition. Safe mode can also be entered manually, but then it can only be turned off manually as well.

Here is the command

hadoop dfsadmin -safemode leave


In my case it enters safe mode whenever I turn off my system without shutting down the hadoop and hbase. So make sure that you have shut down the hadoop and hbase before shut-down of your system.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜