You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Christopher Conner (JIRA)" <ji...@apache.org> on 2012/10/10 00:16:03 UTC

[jira] [Updated] (HDFS-4021) Misleading error message when resources are low on the NameNode

     [ https://issues.apache.org/jira/browse/HDFS-4021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christopher Conner updated HDFS-4021:
-------------------------------------

    Status: Patch Available  (was: Open)

Changed warning message from:

Resources are low on NN. Safe mode must be turned off manually.

To:

Resources are low on NN. Please add 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.
                
> Misleading error message when resources are low on the NameNode
> ---------------------------------------------------------------
>
>                 Key: HDFS-4021
>                 URL: https://issues.apache.org/jira/browse/HDFS-4021
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 2.0.3-alpha
>            Reporter: Colin Patrick McCabe
>            Priority: Minor
>              Labels: newbie
>
> When resources are low on the namenode, it enters SafeMode with a message like this:
> {code}
> 14:00:10,666  WARN NameNodeResourceChecker:89 - Space available on
> volume '/dev/hda1' is 104357888, which is below the configured
> reserved amount 104857600
> 14:00:10,670  WARN FSNamesystem:3190 - NameNode low on available disk
> space. Entering safe mode.
> 14:00:10,670  INFO StateChange:3836 - STATE* Safe mode is ON.
> Resources are low on NN. Safe mode must be turned off manually.
> {code}
> However, turning off safe mode manually has no effect, since it immediately puts itself into Safe Mode again with a log message like this:
> {code}
>  14:00:10,666  WARN NameNodeResourceChecker:89 - Space available on
> volume '/dev/hda1' is 104357888, which is below the configured
> reserved amount 104857600
> 14:00:10,670  WARN FSNamesystem:3190 - NameNode low on available disk
> space. Entering safe mode.
> 14:00:10,670  INFO StateChange:3836 - STATE* Safe mode is ON.
> Resources are low on NN. Safe mode must be turned off manually.
> {code}
> From the shell, it looks like this:
> {code}
>  [cmccabe@vm1 h]$ ./bin/hdfs dfsadmin -safemode get
> Safe mode is ON
> [cmccabe@vm1 h]$ ./bin/hdfs dfsadmin -safemode leave
> Safe mode is OFF
> [cmccabe@vm1 h]$ ./bin/hdfs dfsadmin -safemode get
> Safe mode is ON
> {code}
> It seems like we should change the message about turning off safe mode manually, if turning off safe mode manually does not actually work for the case where resources are low.  Probably we need to explain that safe mode should be turned off manually *after* adding more resources.  As it is, the error message seems misleading.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira