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 <[email protected]>
Authored: Tue Sep 10 10:12:21 2013 -0700
Committer: Yusaku Sako <[email protected]>
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');

Reply via email to