hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron T. Myers" <...@cloudera.com>
Subject Re: Web UI for Active and Standby NN do not agree on safe mode setting
Date Fri, 10 May 2013 18:35:56 GMT
Hi Scott,

This is actually working as intended. NN safemode is not a system-wide
state - it can be set independently on both the active and standby NNs.
DistributedFileSystem is indeed "doing the right thing" in that it will
return the safemode value of the active NN, but on the web UI each NN
should display its own safemode state, which might differ from the other's.
You might take a look at the discussion/patch in
https://issues.apache.org/jira/browse/HDFS-3507 for some more background


Aaron T. Myers
Software Engineer, Cloudera

On Fri, May 10, 2013 at 8:53 AM, Scott Forman <lsforman.931@gmail.com>wrote:

> When safe mode is entered using the dfsadmin CLI command, only one of the
> Web UI's for the Namenodes in an HA environment seems to show that safe
> mode is on.  But retrieving the safe mode setting through the CLI (i.e.
> running "hdfs dfsadmin -safemode get") seems to display the correct setting
> when run from any node in the cluster.
> I noticed this problem when upgrading from a non-HA environment to an HA
> environment, and in this case, the NN in the pre-upgraded system always
> shows the correct setting, regardless if it is active or standby, while the
> newly added NN never displays that safe mode is on.
> The dfsadmin command uses DistributedFileSystem to get the setting, while
> the Web UI seems to use FSNamesystem.
> Is this a bug, or do both UI's need to be consulted to determine the safe
> mode setting?
> Thanks,
> Scott

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message