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
Hadoop Yarn Scheduler 调度器简述一、综述调度器职能调度程序负责将资源分配给正在运行的程序,遵循约束(容量、队列等)纯调度,不进行监控、跟踪不能保证重启失败的任务(程序故障、硬件故障)会基于应用程序的资源需求进行调度抽象了容器的概念 Container原文 it does so based on the abstract notion of a resource Container which incorporates elements such as memor