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
