Capacity Scheduler 配置

capacity-scheduler.xml

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.acl_administer_queue=*
yarn.scheduler.capacity.root.capacity=100

yarn.scheduler.capacity.root.default.acl_administer_jobs=root hadoop
yarn.scheduler.capacity.root.default.acl_submit_applications=root hadoop
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=1

yarn.scheduler.capacity.root.test.acl_administer_jobs=hdfs,hive hadoop,hadoop
yarn.scheduler.capacity.root.test.acl_submit_applications=hdfs,hive hadoop,hadoop
yarn.scheduler.capacity.root.test.capacity=50
yarn.scheduler.capacity.root.test.maximum-capacity=100
yarn.scheduler.capacity.root.test.state=RUNNING
yarn.scheduler.capacity.root.test.user-limit-factor=1

yarn.scheduler.capacity.root.test.test1.acl_administer_jobs=hdfs,hive hadoop,hadoop
yarn.scheduler.capacity.root.test.test1.acl_submit_applications=hdfs,hive hadoop,hadoop
yarn.scheduler.capacity.root.test.test1.capacity=50
yarn.scheduler.capacity.root.test.test1.maximum-capacity=100
yarn.scheduler.capacity.root.test.test1.state=RUNNING
yarn.scheduler.capacity.root.test.test1.user-limit-factor=1

yarn.scheduler.capacity.root.test.test2.acl_administer_jobs=hdfs,hive hadoop,hadoop
yarn.scheduler.capacity.root.test.test2.acl_submit_applications=hdfs,hive hadoop,hadoop
yarn.scheduler.capacity.root.test.test2.capacity=50
yarn.scheduler.capacity.root.test.test2.maximum-capacity=100
yarn.scheduler.capacity.root.test.test2.state=RUNNING
yarn.scheduler.capacity.root.test.test2.user-limit-factor=1

yarn.scheduler.capacity.root.queues=default,test
yarn.scheduler.capacity.root.test.queues=test1,test2

yarn.scheduler.capacity.root.unfunded.capacity=50

手动更新配置

yarn rmadmin -refreshQueues​

 

 

在mapred-site.xml 中配置

mapreduce.job.queuename                     默认为default

                                                                改为上面的队列test1

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值