<?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 Capacity Scheduler: Share resource between users and queues in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224386#M186250</link>
    <description>&lt;P&gt;Workaround solution:&lt;/P&gt;&lt;P&gt;I made &lt;STRONG&gt;sub queues&lt;/STRONG&gt;  for each user and it works, but you have to manage it for each user, (we are small company and have few users so it manageable)&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;root.Dev.Dev_user1&lt;/LI&gt;&lt;LI&gt;root.Dev.Dev_user2&lt;/LI&gt;&lt;LI&gt;root.Dev.Dev_user3&lt;/LI&gt;&lt;LI&gt;root.Prod.Prod_user1&lt;/LI&gt;&lt;LI&gt;root.Prod.Prod_user2&lt;/LI&gt;&lt;LI&gt;root.Prod.Prod_user2&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I configured this on our grid, but still looking for a better approach&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jun 2018 19:12:48 GMT</pubDate>
    <dc:creator>ilia987</dc:creator>
    <dc:date>2018-06-27T19:12:48Z</dc:date>
    <item>
      <title>Yarn Capacity Scheduler: Share resource between users and queues</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224379#M186243</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am having some trouble settings the following scheduler queues params: &lt;/P&gt;&lt;P&gt;have 2 queue Dev and Prod&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Root 100%&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;Dev 30%&lt;/LI&gt;&lt;LI&gt;Prod 70%&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;(if only one used it should act as 100% of cluster)&lt;/P&gt;&lt;P&gt;Each queue is used by multiple users and resources should be shared equally, but when only one user exists(in each queue) it should use the entire capacity of the queue.
And if the user alone in the cluster it should use 100% of the cluster
in case of second user join, the scheduler should share the available resources&lt;/P&gt;&lt;P&gt;example flow:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;cluster is free of jobs&lt;/LI&gt;&lt;LI&gt;user A submit job at queue Dev. (it now uses 100% of the cluster)&lt;/LI&gt;&lt;LI&gt;user B submit job at queue Dev (it hangs in accepted)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;i want that the users will share the capacity of the cluster, each should receive 50%&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 14:25:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224379#M186243</guid>
      <dc:creator>ilia987</dc:creator>
      <dc:date>2018-06-19T14:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn Capacity Scheduler: Share resource between users and queues</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224380#M186244</link>
      <description>&lt;P&gt;use Fair Share scheduler&lt;/P&gt;&lt;P&gt;for more info&lt;/P&gt;&lt;P&gt;&lt;A href="https://hadoop.apache.org/docs/r2.4.1/hadoop-yarn/hadoop-yarn-site/FairScheduler.html" target="_blank"&gt;https://hadoop.apache.org/docs/r2.4.1/hadoop-yarn/hadoop-yarn-site/FairScheduler.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 15:31:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224380#M186244</guid>
      <dc:creator>dashmeet_singh</dc:creator>
      <dc:date>2018-06-19T15:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn Capacity Scheduler: Share resource between users and queues</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224381#M186245</link>
      <description>&lt;P&gt;It is set on fair, but when one user take all the resources and another user submit a job, the second job will not start untill the first job will finish.. &lt;/P&gt;&lt;P&gt;for some reason &lt;STRONG&gt;Minimum User Limit&lt;/STRONG&gt; have no effect&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 15:54:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224381#M186245</guid>
      <dc:creator>ilia987</dc:creator>
      <dc:date>2018-06-19T15:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn Capacity Scheduler: Share resource between users and queues</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224382#M186246</link>
      <description>&lt;P&gt;When the second job is submitted ,whether it shows error or job goes in waiting state.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 16:12:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224382#M186246</guid>
      <dc:creator>dashmeet_singh</dc:creator>
      <dc:date>2018-06-19T16:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn Capacity Scheduler: Share resource between users and queues</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224383#M186247</link>
      <description>&lt;P&gt;state accepted&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 16:18:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224383#M186247</guid>
      <dc:creator>ilia987</dc:creator>
      <dc:date>2018-06-19T16:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn Capacity Scheduler: Share resource between users and queues</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224384#M186248</link>
      <description>&lt;P&gt;&lt;A href="@Ilia K"&gt;&lt;EM&gt; @Ilia K&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The default Scheduler in HDP is Capacity Scheduler. You should note the differences between all the 3 settings&lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;&lt;STRONG&gt; Capacity Scheduler&lt;/STRONG&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM&gt;The CapacityScheduler is designed to run Hadoop applications as a shared, multi-tenant cluster in an operator-friendly manner while maximizing the throughput and the utilization of the cluster. &lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;&lt;STRONG&gt;FIFO (First in First Out)&lt;/STRONG&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM&gt;Is the simplest scheduling algorithm. FIFO simply queues processes in the order that they arrive in the ready queue. &lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;&lt;STRONG&gt;Fair Scheduler &lt;/STRONG&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM&gt;Fair scheduling is a method of assigning resources to applications such that all apps get, on average, an equal share of resources over time&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Having said that in your example above the PROD has 70% so despite  "&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;Each queue is used by multiple users and resources should be shared equally&lt;/EM&gt;&lt;/STRONG&gt;&lt;I&gt;"   the PROD queue jobs will have priority over the DEV queue which I think is the desired config.&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Can you share the below values:&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;STRONG&gt;yarn.resourcemanager.scheduler.class &lt;/STRONG&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;STRONG&gt;Capacity Scheduler values?&lt;/STRONG&gt;&lt;BR /&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Please revert&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 16:47:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224384#M186248</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-06-19T16:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn Capacity Scheduler: Share resource between users and queues</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224385#M186249</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;yarn.resourcemanager.scheduler.class = &lt;/STRONG&gt;&lt;/EM&gt;org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler&lt;/P&gt;&lt;P&gt;currently &lt;I&gt;&lt;STRONG&gt;Capacity Scheduler values &lt;/STRONG&gt;abit differ from what i describe, cause of integration,&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;currently there are 3 queues  &lt;STRONG&gt;default&lt;/STRONG&gt; 50% &lt;STRONG&gt;bt&lt;/STRONG&gt; and &lt;STRONG&gt;opt&lt;/STRONG&gt; each at 25%&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;i have done the testing on &lt;STRONG&gt;default&lt;/STRONG&gt; queue&lt;/I&gt;&lt;/P&gt;&lt;PRE&gt;yarn.scheduler.capacity.maximum-am-resource-percent=0.2
yarn.scheduler.capacity.maximum-applications=10000
yarn.scheduler.capacity.node-locality-delay=40
yarn.scheduler.capacity.root.accessible-node-labels=*
yarn.scheduler.capacity.root.acl_administer_queue=yarn
yarn.scheduler.capacity.root.capacity=100
yarn.scheduler.capacity.root.default.acl_submit_applications=yarn
yarn.scheduler.capacity.root.default.capacity=50
yarn.scheduler.capacity.root.default.maximum-capacity=100
yarn.scheduler.capacity.root.default.state=RUNNING
yarn.scheduler.capacity.root.default.user-limit-factor=2
yarn.scheduler.capacity.root.queues=bt,default,opt
yarn.scheduler.capacity.queue-mappings-override.enable=false
yarn.scheduler.capacity.root.bt.acl_administer_queue=*
yarn.scheduler.capacity.root.bt.acl_submit_applications=*
yarn.scheduler.capacity.root.bt.capacity=25
yarn.scheduler.capacity.root.bt.maximum-capacity=100
yarn.scheduler.capacity.root.bt.minimum-user-limit-percent=100
yarn.scheduler.capacity.root.bt.ordering-policy=fair
yarn.scheduler.capacity.root.bt.ordering-policy.fair.enable-size-based-weight=false
yarn.scheduler.capacity.root.bt.priority=0
yarn.scheduler.capacity.root.bt.state=RUNNING
yarn.scheduler.capacity.root.bt.user-limit-factor=1
yarn.scheduler.capacity.root.default.acl_administer_queue=yarn
yarn.scheduler.capacity.root.default.minimum-user-limit-percent=25
yarn.scheduler.capacity.root.default.ordering-policy=fair
yarn.scheduler.capacity.root.default.ordering-policy.fair.enable-size-based-weight=false
yarn.scheduler.capacity.root.default.priority=0
yarn.scheduler.capacity.root.opt.acl_administer_queue=*
yarn.scheduler.capacity.root.opt.acl_submit_applications=*
yarn.scheduler.capacity.root.opt.capacity=25
yarn.scheduler.capacity.root.opt.maximum-capacity=25
yarn.scheduler.capacity.root.opt.minimum-user-limit-percent=100
yarn.scheduler.capacity.root.opt.ordering-policy=fair
yarn.scheduler.capacity.root.opt.ordering-policy.fair.enable-size-based-weight=false
yarn.scheduler.capacity.root.opt.priority=0
yarn.scheduler.capacity.root.opt.state=RUNNING
yarn.scheduler.capacity.root.opt.user-limit-factor=1
yarn.scheduler.capacity.root.priority=0&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Jun 2018 18:09:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224385#M186249</guid>
      <dc:creator>ilia987</dc:creator>
      <dc:date>2018-06-19T18:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn Capacity Scheduler: Share resource between users and queues</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224386#M186250</link>
      <description>&lt;P&gt;Workaround solution:&lt;/P&gt;&lt;P&gt;I made &lt;STRONG&gt;sub queues&lt;/STRONG&gt;  for each user and it works, but you have to manage it for each user, (we are small company and have few users so it manageable)&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;root.Dev.Dev_user1&lt;/LI&gt;&lt;LI&gt;root.Dev.Dev_user2&lt;/LI&gt;&lt;LI&gt;root.Dev.Dev_user3&lt;/LI&gt;&lt;LI&gt;root.Prod.Prod_user1&lt;/LI&gt;&lt;LI&gt;root.Prod.Prod_user2&lt;/LI&gt;&lt;LI&gt;root.Prod.Prod_user2&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I configured this on our grid, but still looking for a better approach&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 19:12:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224386#M186250</guid>
      <dc:creator>ilia987</dc:creator>
      <dc:date>2018-06-27T19:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn Capacity Scheduler: Share resource between users and queues</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224387#M186251</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/45274/ilia987.html" nodeid="45274"&gt;@Ilia K&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In your case i would suggest using the following configuration:&lt;BR /&gt;Dev queue: Capacity 30% Max Capacity 70%, User limit Factor: 4, Oredering policy: Fair&lt;BR /&gt;&lt;BR /&gt;Prod queue: Capacity 70% Max Capacity 30%, User limit Factor 2, Oredering policy: Fair&lt;/P&gt;&lt;P&gt;Make sure preemption is enabled in hive config.&lt;BR /&gt;These configs should give you the desired result - thus enabling each queue having 100% when the other queue is idle.&lt;BR /&gt;The trick is with "User Limit Factor" - which enables the dev queue to "steal" resources from the Prod queue up to 4 times of it's configured capacity (thus resulting in 100% percent in DEV while Prod is idle).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jul 2018 16:19:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224387#M186251</guid>
      <dc:creator>Adija1</dc:creator>
      <dc:date>2018-07-08T16:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn Capacity Scheduler: Share resource between users and queues</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224388#M186252</link>
      <description>&lt;P&gt;Thanks but i have done it already, &lt;/P&gt;&lt;DIV&gt;still looking for better approach cause of maintenance needed every time new user is added &lt;/DIV&gt;</description>
      <pubDate>Sun, 08 Jul 2018 17:31:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224388#M186252</guid>
      <dc:creator>ilia987</dc:creator>
      <dc:date>2018-07-08T17:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn Capacity Scheduler: Share resource between users and queues</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224389#M186253</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/45274/ilia987.html" nodeid="45274"&gt;@Ilia K&lt;/A&gt; &lt;BR /&gt;What maintenance is needed ? You can use user mapping in order to set which user will use which queue....&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jul 2018 18:31:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224389#M186253</guid>
      <dc:creator>Adija1</dc:creator>
      <dc:date>2018-07-08T18:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn Capacity Scheduler: Share resource between users and queues</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224390#M186254</link>
      <description>&lt;P&gt;thakyou it vry nice blog for beginners&lt;/P&gt;&lt;P&gt;
&lt;A href="https://www.emexotechnologies.com/courses/big-data-analytics-training/big-data-hadoop-training/" target="_blank"&gt;https://www.emexotechnologies.com/courses/big-data-analytics-training/big-data-hadoop-training/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jul 2018 18:45:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-Capacity-Scheduler-Share-resource-between-users-and/m-p/224390#M186254</guid>
      <dc:creator>ruchiradatta88</dc:creator>
      <dc:date>2018-07-08T18:45:49Z</dc:date>
    </item>
  </channel>
</rss>

