CCAH-CCA-500-1题:What is the maximum amount of virtual memory allocated......

1. What is the maximum amount of virtual memory allocated for each map task before YARN will kill its Container?
Your cluster’s mapred-start.xml includes the following parameters

点击(此处)折叠或打开

  1. <name>mapreduce.map.memory.mb</name>
  2. <value>4096</value>
  3. <name>mapreduce.reduce.memory.mb</name>
  4. <value>8192</value>
  5. And any cluster’s yarn-site.xml includes the following parameters
  6. <name>yarn.nodemanager.vmen-pmen-ration</name>
  7. <value>2.1</value>
What is the maximum amount of virtual memory allocated for each map task before YARN will kill its Container?
A. 4 GB         B. 17.2 GB        C. 8.9GB         D. 8.2 GB       E. 24.6 GB

问题:
  每个 map任务,在运行时,虚拟内存能够分配到多大时,就会被 Yarn资源管理器kill掉?

解析:
   参数yarn.nodemanager.vmen-pmen-ration :
          是指 每单位的物理内存总量对应的虚拟内存量,默认是2.1,表示每使用1MB的物理内存,最多可以使用2.1MB的虚拟内存总量。
所以map memory 当前设置是4096Mb ,那么vm的最大分配为(4096Mb *2.1)/1024Mb =8.4G,那么接近答案的是D.

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

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值