You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ab...@apache.org on 2014/11/18 23:50:56 UTC
ambari git commit: AMBARI-8278 - Database Host for HadoopMetrics,
Hive Oozie should be set to corresponding server host name
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 <ab...@hortonworks.com>
Authored: Wed Nov 19 00:47:36 2014 +0200
Committer: Artem Baranchuk <ab...@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'));