incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject git commit: AMBARI-3155. After NameNode HA is enabled, HDFS Config page does not come up. (Andrii Babiichuk via yusaku)
Date Tue, 10 Sep 2013 17:13:22 GMT
Updated Branches:
  refs/heads/trunk 3e962ea58 -> a4a26da76


AMBARI-3155. After NameNode HA is enabled, HDFS Config page does not come up. (Andrii Babiichuk
via yusaku)


Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/a4a26da7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/a4a26da7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/a4a26da7

Branch: refs/heads/trunk
Commit: a4a26da76c9373260464cbf90968a14cacf7a9d5
Parents: 3e962ea
Author: Yusaku Sako <yusaku@hortonworks.com>
Authored: Tue Sep 10 10:12:21 2013 -0700
Committer: Yusaku Sako <yusaku@hortonworks.com>
Committed: Tue Sep 10 10:12:21 2013 -0700

----------------------------------------------------------------------
 ambari-web/app/controllers/main/service/info/configs.js | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/a4a26da7/ambari-web/app/controllers/main/service/info/configs.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service/info/configs.js b/ambari-web/app/controllers/main/service/info/configs.js
index 1c994cf..0ec4731 100644
--- a/ambari-web/app/controllers/main/service/info/configs.js
+++ b/ambari-web/app/controllers/main/service/info/configs.js
@@ -1591,9 +1591,11 @@ App.MainServiceInfoConfigsController = Em.Controller.extend({
 
     switch (serviceName) {
       case 'HDFS':
-        var sNameNodeHost = serviceConfigs.findProperty('name', 'snamenode_host');
-        sNameNodeHost.defaultValue = this.get('content.hostComponents').findProperty('componentName',
'SECONDARY_NAMENODE').get('host.hostName');
-        globalConfigs.push(sNameNodeHost);
+        if(this.get('content.hostComponents').findProperty('componentName', 'SECONDARY_NAMENODE')
&& this.get('content.hostComponents').findProperty('componentName', 'SECONDARY_NAMENODE').get('workStatus')
!= 'MAINTENANCE') {
+          var sNameNodeHost = serviceConfigs.findProperty('name', 'snamenode_host');
+          sNameNodeHost.defaultValue = this.get('content.hostComponents').findProperty('componentName',
'SECONDARY_NAMENODE').get('host.hostName');
+          globalConfigs.push(sNameNodeHost);
+        }
         break;
       case 'MAPREDUCE':
         var jobTrackerHost = serviceConfigs.findProperty('name', 'jobtracker_host');


Mime
View raw message