You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ma...@apache.org on 2016/09/12 11:54:08 UTC
[44/50] ambari git commit: AMBARI-18345. 'Stack advisor' validation
code reports error while trying to access
'yarn.nodemanager.resource.memory-mb' config.
AMBARI-18345. 'Stack advisor' validation code reports error while trying to access 'yarn.nodemanager.resource.memory-mb' config.
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/3a60e8c8
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3a60e8c8
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3a60e8c8
Branch: refs/heads/AMBARI-2.4.0.2
Commit: 3a60e8c884bc6dba6ede41d553e9165ae754f09e
Parents: 9e6f7d5
Author: Swapan Shridhar <ss...@hortonworks.com>
Authored: Thu Sep 8 13:00:35 2016 -0700
Committer: Swapan Shridhar <ss...@hortonworks.com>
Committed: Thu Sep 8 15:08:55 2016 -0700
----------------------------------------------------------------------
.../resources/stacks/HDP/2.5/services/stack_advisor.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/3a60e8c8/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 1f44229..75b2f3f 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
@@ -256,13 +256,13 @@ class HDP25StackAdvisor(HDP24StackAdvisor):
MIN_ASSUMED_CAP_REQUIRED_FOR_SERVICE_CHECKS = 512
current_selected_queue_for_llap_cap = None
- # Get total cluster capacity
- node_manager_host_list = self.get_node_manager_hosts(services, hosts)
- node_manager_cnt = len(node_manager_host_list)
- yarn_nm_mem_in_mb = self.get_yarn_nm_mem_in_mb(services, configurations)
- total_cluster_capacity = node_manager_cnt * yarn_nm_mem_in_mb
-
if len(hsi_hosts) > 0:
+ # Get total cluster capacity
+ node_manager_host_list = self.get_node_manager_hosts(services, hosts)
+ node_manager_cnt = len(node_manager_host_list)
+ yarn_nm_mem_in_mb = self.get_yarn_nm_mem_in_mb(services, configurations)
+ total_cluster_capacity = node_manager_cnt * yarn_nm_mem_in_mb
+
capacity_scheduler_properties, received_as_key_value_pair = self.getCapacitySchedulerProperties(services)
if capacity_scheduler_properties:
if self.HIVE_INTERACTIVE_SITE in services['configurations'] and \