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
<!-- yarn.scheduler.capacity.<queue-path>.queues --><property><name>yarn.scheduler.capacity.root.queues</name><value>a,b</value></property><property><name>yarn.scheduler.capacity.root.a.queues</name><value>a1,a2</value></property><property><name>yarn.scheduler.capacity.root.b.queues</name><value>b1,b2,b3</value></property><!-- Queue Properties --><!-- Resource Allocation --><!-- yarn.scheduler.capacity.<queue-path>.capacity --><property><name>yarn.scheduler.capacity.root.a.capacity</name><value>60</value></property><property><name>yarn.scheduler.capacity.root.b.capacity</name><value>40</value></property><!-- yarn.scheduler.capacity.<queue-path>.maximum-capacity ; setting this value to -1 sets maximum capacity to 100% --><property><name>yarn.scheduler.capacity.root.a.maximum-capacity</name><value>-1</value></property><property><name>yarn.scheduler.capacity.root.b.maximum-capacity</name><value>70</value></property>
更新配置
yarn rmadmin -refreshQueues
Web UI
使用 Yarn RM Web UI 查看
ResourceManager http://rm_host:port/ Default HTTP port is 8088.
三、Fair Scheduler
说明
基于权重调取
Fair scheduling is a method of assigning resources to applications such that all apps get, on average, an equal share of resources over time