Skip to content
Permalink
Browse files
[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)
  • Loading branch information
newyyshan authored and hapylestat committed Jul 17, 2019
1 parent 616d197 commit 72d203f26bfeecde9b4bb9ce81dbe95b6111e0f2
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1240,8 +1240,8 @@ def calculateYarnAllocationSizes(self, configurations, services, hosts):
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"])



0 comments on commit 72d203f

Please sign in to comment.