ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abaranc...@apache.org
Subject ambari git commit: AMBARI-8278 - Database Host for HadoopMetrics, Hive Oozie should be set to corresponding server host name
Date Tue, 18 Nov 2014 22:50:56 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 32b1fc38e -> 4ca08bbe4


AMBARI-8278 - Database Host for HadoopMetrics, Hive Oozie should be set to corresponding server
host name


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

Branch: refs/heads/trunk
Commit: 4ca08bbe4b0960e441310e9c8bb32a158a8ca02c
Parents: 32b1fc3
Author: Artem Baranchuk <abaranchuk@hortonworks.com>
Authored: Wed Nov 19 00:47:36 2014 +0200
Committer: Artem Baranchuk <abaranchuk@hortonworks.com>
Committed: Wed Nov 19 00:48:08 2014 +0200

----------------------------------------------------------------------
 ambari-web/app/models/service_config.js | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/4ca08bbe/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 255a679..f69f05f 100644
--- a/ambari-web/app/models/service_config.js
+++ b/ambari-web/app/models/service_config.js
@@ -469,6 +469,27 @@ App.ServiceConfigProperty = Ember.Object.extend({
       case 'hadoop_host':
         this.set('value', masterComponentHostsInDB.filterProperty('component', 'NAMENODE').mapProperty('hostName'));
         break;
+      case 'sink_existing_mssql_server_host':
+      case 'sink_existing_mssql_server_2_host':
+        var nameNodeHost = masterComponentHostsInDB.findProperty('component', 'NAMENODE').hostName;
+        this.set('value', nameNodeHost).set('defaultValue', nameNodeHost);
+        break;
+      case 'hive_existing_mysql_host':
+      case 'hive_existing_postgresql_host':
+      case 'hive_existing_oracle_host':
+      case 'hive_existing_mssql_server_host':
+      case 'hive_existing_mssql_server_2_host':
+        var hiveServerHost = masterComponentHostsInDB.findProperty('component', 'HIVE_SERVER').hostName;
+        this.set('value', hiveServerHost).set('defaultValue', hiveServerHost);
+        break;
+      case 'oozie_existing_mysql_host':
+      case 'oozie_existing_postgresql_host':
+      case 'oozie_existing_oracle_host':
+      case 'oozie_existing_mssql_server_host':
+      case 'oozie_existing_mssql_server_2_host':
+        var oozieServerHost = masterComponentHostsInDB.findProperty('component', 'OOZIE_SERVER').hostName;
+        this.set('value', oozieServerHost).set('defaultValue', oozieServerHost);
+        break;
       case 'storm.zookeeper.servers':
       case 'zookeeperserver_hosts':
         this.set('value', masterComponentHostsInDB.filterProperty('component', 'ZOOKEEPER_SERVER').mapProperty('hostName'));


Mime
View raw message