在CDH-5中的Capacity Scheduler中,ACL不会出现问题。请参阅以下配置。只有user1和user2应该能够queue2和queue1,但所有用户都能够访问所有队列。
如果有解决方案,请告诉我
<?xml version="1.0"?>
<configuration>
<property>
<name>yarn.scheduler.capacity.root.queues</name>
<value>batch,default</value>
</property>
<property>
<name>yarn.scheduler.capacity.root.batch.queues</name>
<value>queue1,queue2</value>
</property>
<property>
<name>yarn.scheduler.capacity.root.batch.capacity</name>
<value>80</value>
</property>
<property>
<name>yarn.scheduler.capacity.root.default.capacity</name>
<value>20</value>
</property>
<property>
<name>yarn.scheduler.capacity.root.batch.queue1.capacity</name>
<value>70</value>
</property>
<property>
<name>yarn.scheduler.capacity.root.batch.queue2.capacity</name>
<value>30</value>
</property>
<property>
<name>yarn.scheduler.capacity.root.batch.queue1.acl_submit_applications</name>
<value>user1</value>
</property>
<property>
<name>yarn.scheduler.capacity.root.batch.queue2.acl_submit_applications</name>
<value>user2</value>
</property>
<property>
<name>yarn.scheduler.capacity.root.batch.queue1.acl_administer_queue</name>
<value>*</value>
</property>
<property>
<name>yarn.scheduler.capacity.root.batch.queue2.acl_administer_queue</name>
<value>*</value>
</property>
<property>
<name>yarn.scheduler.capacity.maximum-applications</name>
<value>20000</value>
</property>
</configuration>