You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ja...@apache.org on 2014/05/23 01:37:19 UTC

git commit: AMBARI-5862. yarn.timeline-service.leveldb-timeline-store.path should be set dynamically by the client. (jaimin)

Repository: ambari
Updated Branches:
  refs/heads/trunk e924455a2 -> f715c3a4f


AMBARI-5862. yarn.timeline-service.leveldb-timeline-store.path should be set dynamically by the client. (jaimin)


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

Branch: refs/heads/trunk
Commit: f715c3a4f095e815f87215e3f1bf6e2b7c30745c
Parents: e924455
Author: Jaimin Jetly <ja...@hortonworks.com>
Authored: Thu May 22 16:36:51 2014 -0700
Committer: Jaimin Jetly <ja...@hortonworks.com>
Committed: Thu May 22 16:37:00 2014 -0700

----------------------------------------------------------------------
 ambari-web/app/data/HDP2/site_properties.js | 1 +
 ambari-web/app/models/service_config.js     | 7 +++++++
 2 files changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/f715c3a4/ambari-web/app/data/HDP2/site_properties.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/data/HDP2/site_properties.js b/ambari-web/app/data/HDP2/site_properties.js
index 2a8a982..8c5ce88 100644
--- a/ambari-web/app/data/HDP2/site_properties.js
+++ b/ambari-web/app/data/HDP2/site_properties.js
@@ -255,6 +255,7 @@ module.exports =
       "id": "site property",
       "name": "yarn.timeline-service.leveldb-timeline-store.path",
       "displayName": "yarn.timeline-service.leveldb-timeline-store.path",
+      "defaultDirectory": "/hadoop/yarn/timeline",
       "category": "AppTimelineServer",
       "displayType": "directory",
       "serviceName": "YARN"

http://git-wip-us.apache.org/repos/asf/ambari/blob/f715c3a4/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 fd88e20..8db9a19 100644
--- a/ambari-web/app/models/service_config.js
+++ b/ambari-web/app/models/service_config.js
@@ -458,6 +458,7 @@ App.ServiceConfigProperty = Ember.Object.extend({
         break;
       case 'fs.checkpoint.dir':
       case 'dfs.namenode.checkpoint.dir':
+      case 'yarn.timeline-service.leveldb-timeline-store.path':
       case 'zk_data_dir':
       case 'oozie_data_dir':
       case 'hbase.tmp.dir':
@@ -536,6 +537,12 @@ App.ServiceConfigProperty = Ember.Object.extend({
           setOfHostNames.push(host.hostName);
         }, this);
         break;
+      case 'yarn.timeline-service.leveldb-timeline-store.path':
+        components = masterComponentHostsInDB.filterProperty('component', 'APP_TIMELINE_SERVER');
+        components.forEach(function (component) {
+          setOfHostNames.push(component.hostName);
+        }, this);
+        break;
       case 'zk_data_dir':
         components = masterComponentHostsInDB.filterProperty('component', 'ZOOKEEPER_SERVER');
         components.forEach(function (component) {