CCAH-CCA-500-5题:How will the Fair Scheduler handle these two jobs?

简介: 5.How will the Fair Scheduler handle these two jobs?You have a cluster running with the fair Scheduler enabled.

5.How will the Fair Scheduler handle these two jobs?

You have a cluster running with the fair Scheduler enabled.
There are currently no jobs running on the cluster, and you submit a job A,
so that only job A is running on the cluster. A while later, you submit Job B.
Now Job A and Job B are running on the cluster at the same time. How will the Fair
Scheduler handle these two jobs?

A.When Job B gets submitted, it will get assigned tasks, while job A continues to run with fewer tasks.
B.When Job B gets submitted, Job A has to finish first, before job B can gets scheduled.
C.When Job A gets submitted, it doesn’t consumes all the task slots.
D.When Job A gets submitted, it consumes all the task slots.


问题:
       公平调度器对这两个jobs怎样处理?

解析: AD
       当只有一个job A在运行,这个job A会使用整个集群的 任务solts;
当另外一个job B被提交,那么任务solts会被释放分配给新的job B,
然而job A则会继续使用少些的任务solts,运行着。

 

详解Hadoop Slots的含义

http://www.07net01.com/2014/09/157715.html
http://net.pku.edu.cn/~course/cs402/2010/resource/2009/hadoop-0.20.0/docs/fair_scheduler.html

 

目录
相关文章
|
24天前
|
Kubernetes 容器
Warning FailedScheduling 14m (x12 over 16m) default-scheduler 0/1 nodes are available: 1 node(s
Warning FailedScheduling 14m (x12 over 16m) default-scheduler 0/1 nodes are available: 1 node(s
17 0
|
3月前
|
资源调度
在SchedulerX中,你可以使用`schedulerx.output()`函数来向Worker报告运行结果
【1月更文挑战第7天】【1月更文挑战第35篇】在SchedulerX中,你可以使用`schedulerx.output()`函数来向Worker报告运行结果
20 1
|
4月前
|
资源调度 分布式计算 算法
Gang Scheduling
Gang Scheduling(Coscheduling)、FIFO Scheduling、Capacity Scheduling、Fair sharing、Binpack/Spread等是云计算和分布式系统中的任务调度算法,用于在资源有限的情况下,公平、高效地分配任务和资源。下面是这些调度算法的基本介绍和如何在实际应用中使用它们的一些建议:
86 2
|
5月前
|
NoSQL Redis
@Scheduled的使用
@Scheduled的使用
29 0
|
8月前
|
数据库
This scheduler instance (XXXXX) is still active but was recovered by another
This scheduler instance (XXXXX) is still active but was recovered by another
149 0
|
Java 调度
Leetcode-Medium 621. Task Scheduler
Leetcode-Medium 621. Task Scheduler
95 0
Leetcode-Medium 621. Task Scheduler