ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jai...@apache.org
Subject git commit: AMBARI-3868: Add host fails after configuring NN HA with JavaScript error. (jaimin)
Date Sat, 23 Nov 2013 02:46:58 GMT
Updated Branches:
  refs/heads/branch-1.4.2 abfc4fa86 -> 322356169


AMBARI-3868: Add host fails after configuring NN HA with JavaScript error. (jaimin)


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

Branch: refs/heads/branch-1.4.2
Commit: 3223561698405200127cbb29e34d9c18df1ae879
Parents: abfc4fa
Author: Jaimin Jetly <jaimin@hortonworks.com>
Authored: Fri Nov 22 18:44:54 2013 -0800
Committer: Jaimin Jetly <jaimin@hortonworks.com>
Committed: Fri Nov 22 18:46:34 2013 -0800

----------------------------------------------------------------------
 ambari-web/app/models/service_config.js | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/32235616/ambari-web/app/models/service_config.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/models/service_config.js b/ambari-web/app/models/service_config.js
index 977bae2..6d0b7bd 100644
--- a/ambari-web/app/models/service_config.js
+++ b/ambari-web/app/models/service_config.js
@@ -272,12 +272,16 @@ App.ServiceConfigProperty = Ember.Object.extend({
         }
         break;
       case 'dfs.secondary.http.address':
-        var snnHost = masterComponentHostsInDB.findProperty('component', 'SECONDARY_NAMENODE').hostName;
-        this.setDefaultValue("(\\w*)(?=:)",snnHost);
+        var snnHost = masterComponentHostsInDB.findProperty('component', 'SECONDARY_NAMENODE');
+        if (snnHost) {
+          this.setDefaultValue("(\\w*)(?=:)",snnHost.hostName);
+        }
         break;
       case 'dfs.namenode.secondary.http-address':
-        var snnHost = masterComponentHostsInDB.findProperty('component', 'SECONDARY_NAMENODE').hostName;
-        this.setDefaultValue("(\\w*)(?=:)",snnHost);
+        var snnHost = masterComponentHostsInDB.findProperty('component', 'SECONDARY_NAMENODE');
+        if (snnHost) {
+          this.setDefaultValue("(\\w*)(?=:)",snnHost.hostName);
+        }
         break;
       case 'datanode_hosts':
         this.set('value', slaveComponentHostsInDB.findProperty('componentName', 'DATANODE').hosts.mapProperty('hostName'));


Mime
View raw message