<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: YARN memory configuration relatively? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/YARN-memory-configuration-relatively/m-p/47554#M39413</link>
    <description>Yes, I'm using Cloudera Manager. I'll follow your link. Thanks.&lt;BR /&gt;Another question is that, I find that HDFS NameNodes exit frequenctly because lack of resource.&lt;BR /&gt;How should I reserve enough resource to them from being robbed by YARN?&lt;BR /&gt;</description>
    <pubDate>Fri, 18 Nov 2016 05:22:13 GMT</pubDate>
    <dc:creator>zhuangmz</dc:creator>
    <dc:date>2016-11-18T05:22:13Z</dc:date>
    <item>
      <title>YARN memory configuration relatively?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-memory-configuration-relatively/m-p/47550#M39411</link>
      <description>&lt;P&gt;Hi, I'm confused about how to config memory in YARN cluster.&lt;/P&gt;&lt;P&gt;So far, I have some machines each with 64GB physical memory. Because all machines are 64GB, I can set a unified&amp;nbsp;yarn.nodemanager.resource.memory-mb=60GB。&lt;/P&gt;&lt;P&gt;If I want to add &amp;nbsp;new and better machines with 128GB physical memory. How should I set the memory configuration in YARN.&lt;/P&gt;&lt;P&gt;If I set&amp;nbsp;&lt;SPAN&gt;yarn.nodemanager.resource.memory-mb=&lt;STRONG&gt;12&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;GB, will this affect the old machines&lt;/STRONG&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I set&amp;nbsp;&lt;SPAN&gt;yarn.nodemanager.resource.memory-mb=&lt;STRONG&gt;6&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;GB, will this waste&amp;nbsp;the new machines' resource&lt;/STRONG&gt;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Is there a relative ration to fit each machine &lt;STRONG&gt;adaptively&lt;/STRONG&gt;? For example, set&amp;nbsp;yarn.nodemanager.resource.memory-mb=&lt;STRONG&gt;0.8*physical_memory&lt;/STRONG&gt;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:48:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-memory-configuration-relatively/m-p/47550#M39411</guid>
      <dc:creator>zhuangmz</dc:creator>
      <dc:date>2022-09-16T10:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: YARN memory configuration relatively?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-memory-configuration-relatively/m-p/47551#M39412</link>
      <description>The configs you are targeting are configs local to each NodeManager. You can configure each NodeManager distinctly and still have a working (heterogenous) cluster. The RM views the cluster as an aggregate but does consider each NM's resource limits as its own published value when they register.&lt;BR /&gt;&lt;BR /&gt;If you are using Cloudera Manager to install and manage your cluster, then you are looking for the concept of 'Role Groups' as explained here: &lt;A href="https://www.cloudera.com/documentation/enterprise/latest/topics/cm_mc_role_groups.html" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/latest/topics/cm_mc_role_groups.html&lt;/A&gt;. The role groups layer lets you divide your set of hosts and their roles into groups of differing configurations, which in your case you can use to divide in two and configure each group's resource.memory.mb separately (into 60 GB and 120 GB as appropriate).&lt;BR /&gt;&lt;BR /&gt;If you do not use Cloudera Manager, then I highly recommend it, but you can also manage the NodeManager's local yarn-site.xml of each NodeManager separately -- i.e. have two distinct copies, the one for 60 GB placed only on the older hosts, and the other for 120 GB placed only on the newer hosts.</description>
      <pubDate>Fri, 18 Nov 2016 04:23:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-memory-configuration-relatively/m-p/47551#M39412</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2016-11-18T04:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: YARN memory configuration relatively?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-memory-configuration-relatively/m-p/47554#M39413</link>
      <description>Yes, I'm using Cloudera Manager. I'll follow your link. Thanks.&lt;BR /&gt;Another question is that, I find that HDFS NameNodes exit frequenctly because lack of resource.&lt;BR /&gt;How should I reserve enough resource to them from being robbed by YARN?&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Nov 2016 05:22:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-memory-configuration-relatively/m-p/47554#M39413</guid>
      <dc:creator>zhuangmz</dc:creator>
      <dc:date>2016-11-18T05:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: YARN memory configuration relatively?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-memory-configuration-relatively/m-p/47557#M39414</link>
      <description>I recommend filing one topic per question so you reach the right person for the topic.&lt;BR /&gt;&lt;BR /&gt;Ideally the NameNode should exist on another host, or if not, at the very least it should be given enough free cores and a separate disk aside of a slice of RAM for its heap. I'm unsure what exit criteria you speak of - care to add some log snippets or screenshots showing the problem you observe?</description>
      <pubDate>Fri, 18 Nov 2016 05:56:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-memory-configuration-relatively/m-p/47557#M39414</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2016-11-18T05:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: YARN memory configuration relatively?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-memory-configuration-relatively/m-p/47558#M39415</link>
      <description>Thanks. I'll try your advice first. And create a new topic if still can not solved.</description>
      <pubDate>Fri, 18 Nov 2016 05:58:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-memory-configuration-relatively/m-p/47558#M39415</guid>
      <dc:creator>zhuangmz</dc:creator>
      <dc:date>2016-11-18T05:58:38Z</dc:date>
    </item>
  </channel>
</rss>

