天天看点

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

点击(此处)折叠或打开

<name>mapreduce.map.memory.mb</name>

<value>4096</value>

<name>mapreduce.reduce.memory.mb</name>

<value>8192</value>

And any cluster’s yarn-site.xml includes the following parameters

<name>yarn.nodemanager.vmen-pmen-ration</name>

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

继续阅读