This is an automated email from the ASF dual-hosted git repository.

hapylestat pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 72d203f  [AMBARI-25166] Modifying the value of node memory in the YARN 
service will affect the maximum value of container memory, but the modification 
cannot be saved. (#2833) (newyyshan via dgrinenko)
72d203f is described below

commit 72d203f26bfeecde9b4bb9ce81dbe95b6111e0f2
Author: Yingying Shan <shanyingy...@cmss.chinamobile.com>
AuthorDate: Wed Jul 17 17:12:16 2019 +0800

    [AMBARI-25166] Modifying the value of node memory in the YARN service will 
affect the maximum value of container memory, but the modification cannot be 
saved. (#2833) (newyyshan via dgrinenko)
---
 ambari-server/src/main/resources/stacks/stack_advisor.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ambari-server/src/main/resources/stacks/stack_advisor.py 
b/ambari-server/src/main/resources/stacks/stack_advisor.py
index 9fa05ed..7c2cf18 100644
--- a/ambari-server/src/main/resources/stacks/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/stack_advisor.py
@@ -1240,8 +1240,8 @@ class DefaultStackAdvisor(StackAdvisor):
     nodeManagerHost = self.getHostWithComponent("YARN", "NODEMANAGER", 
services, hosts)
     if (nodeManagerHost is not None):
       if "yarn-site" in services["configurations"] and 
"yarn.nodemanager.resource.percentage-physical-cpu-limit" in 
services["configurations"]["yarn-site"]["properties"]:
-        putYarnPropertyAttribute('yarn.scheduler.minimum-allocation-mb', 
'maximum', 
configurations["yarn-site"]["properties"]["yarn.nodemanager.resource.memory-mb"])
-        putYarnPropertyAttribute('yarn.scheduler.maximum-allocation-mb', 
'maximum', 
configurations["yarn-site"]["properties"]["yarn.nodemanager.resource.memory-mb"])
+        putYarnPropertyAttribute('yarn.scheduler.minimum-allocation-mb', 
'maximum', 
services["configurations"]["yarn-site"]["properties"]["yarn.nodemanager.resource.memory-mb"])
+        putYarnPropertyAttribute('yarn.scheduler.maximum-allocation-mb', 
'maximum', 
services["configurations"]["yarn-site"]["properties"]["yarn.nodemanager.resource.memory-mb"])
 
 
 

Reply via email to