开发者社区> sh_jepson> 正文

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

 

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
+关注
sh_jepson
遇之问题,与之斗争,穷尽方法,提高自己,重新再来。 https://github.com/Hackeruncle
文章
问答
视频
文章排行榜
最热
最新
相关电子书
更多
Towards A Fault-Tolerant Speaker Verification System: A Regularization Approach To Reduce The Condition Number
立即下载
低代码开发师(初级)实战教程
立即下载
阿里巴巴DevOps 最佳实践手册
立即下载