Browse Source

AMBARI-4464. Panel "Secondary NameNode" exists on HDFS Config Tab after HA enabled. (jaimin)

Jaimin Jetly 11 years ago
parent
commit
32f1ab98ac
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ambari-web/app/utils/config.js

+ 2 - 2
ambari-web/app/utils/config.js

@@ -1021,8 +1021,8 @@ App.config = Em.Object.create({
   OnNnHAHideSnn: function (ServiceConfig) {
   OnNnHAHideSnn: function (ServiceConfig) {
     var configCategories = ServiceConfig.get('configCategories');
     var configCategories = ServiceConfig.get('configCategories');
     var snCategory = configCategories.findProperty('name', 'SNameNode');
     var snCategory = configCategories.findProperty('name', 'SNameNode');
-    var activeNn = App.HDFSService.find('HDFS').get('activeNameNode.hostName');
-    if (snCategory && activeNn) {
+    var isSnnPresent = !!App.HDFSService.find('HDFS').get('snameNode');
+    if (snCategory && !isSnnPresent) {
       configCategories.removeObject(snCategory);
       configCategories.removeObject(snCategory);
     }
     }
   },
   },