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.
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

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/30089851/viewspace-2096652/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/30089851/viewspace-2096652/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值