生活随笔
收集整理的這篇文章主要介紹了
Hadoop Yarn配置多队列的容量调度器案例
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
1)在 capacity-scheduler.xml 中配置如下:
<property><name>yarn.scheduler.capacity.root.queues
</name><value>default,hive
</value><description>The queues at the this level (root is the root queue).
</description>
</property>
<property><name>yarn.scheduler.capacity.root.default.capacity
</name><value>40
</value>
</property>
<property><name>yarn.scheduler.capacity.root.default.maximum-capacity
</name><value>60
</value>
</property>
<property><name>yarn.scheduler.capacity.root.hive.capacity
</name><value>60
</value>
</property>
<property><name>yarn.scheduler.capacity.root.hive.user-limit-factor
</name><value>1
</value>
</property>
<property><name>yarn.scheduler.capacity.root.hive.maximum-capacity
</name><value>80
</value>
</property>
<property><name>yarn.scheduler.capacity.root.hive.state
</name><value>RUNNING
</value>
</property>
<property><name>yarn.scheduler.capacity.root.hive.acl_submit_applications
</name><value>*
</value>
</property>
<property><name>yarn.scheduler.capacity.root.hive.acl_administer_queue
</name><value>*
</value>
</property>
<property><name>yarn.scheduler.capacity.root.hive.acl_application_max_priority
</nam
e><value>*
</value>
</property>
<property><name>yarn.scheduler.capacity.root.hive.maximum-applicationlifetime
</name><value>-1
</value>
</property>
<property><name>yarn.scheduler.capacity.root.hive.default-applicationlifetime
</name><value>-1
</value>
</property>
2)分發(fā)配置文件
3)重啟 Yarn 或者執(zhí)行 yarn rmadmin -refreshQueues 刷新隊(duì)列,就可以看到兩條隊(duì)列:
[zxl@hadoop102 hadoop-3.1.3
]$
yarn rmadmin -refreshQueues
總結(jié)
以上是生活随笔為你收集整理的Hadoop Yarn配置多队列的容量调度器案例的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。