You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sm...@apache.org on 2016/06/14 04:31:06 UTC

ambari git commit: AMBARI-17078. Make Spark2-ThriftServer and Livy Server as optional by default (Jeff Zhang via smohanty)

Repository: ambari
Updated Branches:
  refs/heads/trunk 99b8be72e -> bc465f1b1


AMBARI-17078. Make Spark2-ThriftServer and Livy Server as optional by default (Jeff Zhang via smohanty)


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

Branch: refs/heads/trunk
Commit: bc465f1b16b9efd74467eb1e6d17322a84e8f5a5
Parents: 99b8be7
Author: Sumit Mohanty <sm...@hortonworks.com>
Authored: Mon Jun 13 21:30:54 2016 -0700
Committer: Sumit Mohanty <sm...@hortonworks.com>
Committed: Mon Jun 13 21:30:54 2016 -0700

----------------------------------------------------------------------
 .../src/main/resources/stacks/HDP/2.5/services/stack_advisor.py   | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/bc465f1b/ambari-server/src/main/resources/stacks/HDP/2.5/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.5/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.5/services/stack_advisor.py
index db2986b..e221415 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.5/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.5/services/stack_advisor.py
@@ -1474,3 +1474,6 @@ class HDP25StackAdvisor(HDP24StackAdvisor):
     if serviceName in servicesList:
       hosts_for_component = [component["hostnames"] for component in componentsList if component["component_name"] == componentName][0]
     return hosts_for_component
+
+  def isComponentUsingCardinalityForLayout(self, componentName):
+    return super(HDP25StackAdvisor, self).isComponentUsingCardinalityForLayout (componentName) or  componentName in ['SPARK2_THRIFTSERVER', 'LIVY_SERVER']
\ No newline at end of file