<?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: how to set the yarn application priority in hive ? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-to-set-the-yarn-application-priority-in-hive/m-p/358371#M237822</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/84706"&gt;@bulbcat&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Spark version used in CDH 6.3.2 is Spark&amp;nbsp;&lt;SPAN&gt;2.4.0 [1]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Also&amp;nbsp;spark.yarn.priority will only effect from spark-3.0 [2]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.cloudera.com/documentation/enterprise/6/release-notes/topics/rg_cdh_63_packaging.html" target="_blank"&gt;[1]https://docs.cloudera.com/documentation/enterprise/6/release-notes/topics/rg_cdh_63_packaging.html&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/spark/pull/27856" target="_blank" rel="noopener"&gt;[2]https://github.com/apache/spark/pull/27856&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to update priority for application during runtime you can use below&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;yarn application -updatePriority 10 -appId application_xxxx_xx&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 25 Nov 2022 14:09:47 GMT</pubDate>
    <dc:creator>AsimShaikh</dc:creator>
    <dc:date>2022-11-25T14:09:47Z</dc:date>
    <item>
      <title>how to set the yarn application priority in hive ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-set-the-yarn-application-priority-in-hive/m-p/358353#M237810</link>
      <description>&lt;P&gt;Yarn's application priority can be found in yarn 8088 resource manager's website,&lt;/P&gt;&lt;P&gt;How do the priority work in yarn?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the version of CDH I use is 6.3.2.&lt;/P&gt;&lt;P&gt;Hadoop 3.0.0&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hive 2.1.1&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use hive on spark.&lt;/P&gt;&lt;P&gt;Can I use the config to manage the application priority?&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason some hive sqls should have high application priority when those sqls are appending and run ahead of the other.&amp;nbsp; Instead of running the same time and equal share the compute resources.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I set the following config in Hive, it seems do not work well in Yarn.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="99"&gt;MapReduce&lt;/TD&gt;&lt;TD width="436"&gt;"-Dmapreduce.job.priority=xx"&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="99"&gt;Flink&lt;/TD&gt;&lt;TD width="436"&gt;"-yD yarn.applicaiton.priority=xx"&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="99"&gt;Spark&lt;/TD&gt;&lt;TD width="436"&gt;"spark.yarn.priority=xx"&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In hive sql."set&amp;nbsp;spark.yarn.priority=10;"&lt;/P&gt;&lt;P&gt;It does not work ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 02:11:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-set-the-yarn-application-priority-in-hive/m-p/358353#M237810</guid>
      <dc:creator>bulbcat</dc:creator>
      <dc:date>2022-11-25T02:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the yarn application priority in hive ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-set-the-yarn-application-priority-in-hive/m-p/358371#M237822</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/84706"&gt;@bulbcat&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Spark version used in CDH 6.3.2 is Spark&amp;nbsp;&lt;SPAN&gt;2.4.0 [1]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Also&amp;nbsp;spark.yarn.priority will only effect from spark-3.0 [2]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.cloudera.com/documentation/enterprise/6/release-notes/topics/rg_cdh_63_packaging.html" target="_blank"&gt;[1]https://docs.cloudera.com/documentation/enterprise/6/release-notes/topics/rg_cdh_63_packaging.html&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/spark/pull/27856" target="_blank" rel="noopener"&gt;[2]https://github.com/apache/spark/pull/27856&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to update priority for application during runtime you can use below&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;yarn application -updatePriority 10 -appId application_xxxx_xx&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 14:09:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-set-the-yarn-application-priority-in-hive/m-p/358371#M237822</guid>
      <dc:creator>AsimShaikh</dc:creator>
      <dc:date>2022-11-25T14:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the yarn application priority in hive ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-set-the-yarn-application-priority-in-hive/m-p/358522#M237870</link>
      <description>&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This "&lt;SPAN&gt;yarn application -updatePriority 10 -appId application_xxxx_xx&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;seems a config of yarn.&lt;/P&gt;&lt;P&gt;It does not work for spark 2.x in CDH 6.3.2 either.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bulbcat_1-1669705217757.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36342iC029614E64CCB1D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bulbcat_1-1669705217757.png" alt="bulbcat_1-1669705217757.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bulbcat_2-1669705564244.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36343i5524D4283581A2ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bulbcat_2-1669705564244.png" alt="bulbcat_2-1669705564244.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does it the same reason which means the 'Application Priority' must match the yarn version with spark version?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 07:09:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-set-the-yarn-application-priority-in-hive/m-p/358522#M237870</guid>
      <dc:creator>bulbcat</dc:creator>
      <dc:date>2022-11-29T07:09:31Z</dc:date>
    </item>
  </channel>
</rss>

