ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smoha...@apache.org
Subject ambari git commit: AMBARI-14042. App Timeline Server fails to start without Tez
Date Tue, 24 Nov 2015 19:00:27 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 94f9ea575 -> a835aa2b1


AMBARI-14042. App Timeline Server fails to start without Tez


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

Branch: refs/heads/branch-2.1
Commit: a835aa2b12d779e3b5fb647bf23b8b5596d46e18
Parents: 94f9ea5
Author: Sumit Mohanty <smohanty@hortonworks.com>
Authored: Tue Nov 24 10:59:41 2015 -0800
Committer: Sumit Mohanty <smohanty@hortonworks.com>
Committed: Tue Nov 24 11:00:19 2015 -0800

----------------------------------------------------------------------
 .../stacks/HDP/2.3/services/YARN/configuration/yarn-site.xml   | 3 +++
 .../main/resources/stacks/HDP/2.3/services/stack_advisor.py    | 6 ++++++
 2 files changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/a835aa2b/ambari-server/src/main/resources/stacks/HDP/2.3/services/YARN/configuration/yarn-site.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/YARN/configuration/yarn-site.xml
b/ambari-server/src/main/resources/stacks/HDP/2.3/services/YARN/configuration/yarn-site.xml
index 8f2ecf9..c50d17a 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.3/services/YARN/configuration/yarn-site.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/YARN/configuration/yarn-site.xml
@@ -87,6 +87,9 @@
     <name>yarn.timeline-service.entity-group-fs-store.group-id-plugin-classes</name>
     <value>org.apache.tez.dag.history.logging.ats.TimelineCachePluginImpl</value>
     <description>Plugins that can translate a timeline entity read request into a list
of timeline cache ids, separated by commas. </description>
+    <value-attributes>
+      <empty-value-valid>true</empty-value-valid>
+    </value-attributes>
   </property>
   <!-- advanced ats v1.5 properties-->
   <property>

http://git-wip-us.apache.org/repos/asf/ambari/blob/a835aa2b/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py
index 36432c6..d96aa57 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py
@@ -537,6 +537,12 @@ class HDP23StackAdvisor(HDP22StackAdvisor):
     super(HDP23StackAdvisor, self).recommendYARNConfigurations(configurations, clusterData,
services, hosts)
     putYarnSiteProperty = self.putProperty(configurations, "yarn-site", services)
     putYarnSitePropertyAttributes = self.putPropertyAttribute(configurations, "yarn-site")
+
+    if "tez-site" not in services["configurations"]:
+      putYarnSiteProperty('yarn.timeline-service.entity-group-fs-store.group-id-plugin-classes',
'')
+    else:
+      putYarnSiteProperty('yarn.timeline-service.entity-group-fs-store.group-id-plugin-classes',
'org.apache.tez.dag.history.logging.ats.TimelineCachePluginImpl')
+
     if "ranger-env" in services["configurations"] and "ranger-yarn-plugin-properties" in
services["configurations"] and \
         "ranger-yarn-plugin-enabled" in services["configurations"]["ranger-env"]["properties"]:
       putYarnRangerPluginProperty = self.putProperty(configurations, "ranger-yarn-plugin-properties",
services)


Mime
View raw message