<?xml version="1.0"?>
<!--
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License. See accompanying LICENSE file.
-->
<configuration>


<!-- Site specific YARN configuration properties -->
<property>
			<name>yarn.nodemanager.vmem-check-enabled</name>
			<value>false</value>
			<description>虚拟内存检测，默认是True</description>
	</property>
	
	<property>
			<name>yarn.nodemanager.pmem-check-enabled</name>
			<value>false</value>
			<description>物理内存检测，默认是True</description>
	</property>	


<!--设置容器的内存限制时虚拟内存与物理内存之间的比率-->
<property>
　　<name>yarn.nodemanager.vmem-pmem-ratio</name>
　　<value>4</value>
　　<description>Ratio between virtual memory to physical memory when setting memory limits for containers</description>
</property>
<property>
                <name>yarn.scheduler.maximum-allocation-mb</name>
                <value>9000</value>
                <discription>每个任务最多可用内存,默认8182MB</discription>
        </property>
		
        <property>
                <name>yarn.scheduler.minimum-allocation-mb</name>
                <value>3072</value>
                <discription>每个任务最小可用内存</discription>
        </property>


</configuration>
