http://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-common/yarn-default.xml |
|
配置项 |
中文含义 |
英文含义 |
示例 |
官方默认值 |
|
yarn.resourcemanager.address |
|
The address of the applications manager interface in the RM. |
<property>
<name>yarn.resourcemanager.address</name>
<value>192.168.100.200:8032</value>
</property> |
${yarn.resourcemanager.hostname}:8032 |
|
yarn.resourcemanager.scheduler.address |
|
The address of the scheduler interface. |
<property>
<name>yarn.resourcemanager.scheduler.address</name>
<value>192.168.100.200:8030</value>
</property> |
${yarn.resourcemanager.hostname}:8030 |
|
yarn.resourcemanager.resource-tracker.address |
|
|
<property>
<name>yarn.resourcemanager.resource-tracker.address</name>
<value>192.168.100.200:8031</value>
</property> |
${yarn.resourcemanager.hostname}:8031 |
|
yarn.resourcemanager.admin.address |
|
The address of the RM admin interface. |
<property>
<name>yarn.resourcemanager.admin.address</name>
<value>192.168.100.200:8033</value>
</property> |
${yarn.resourcemanager.hostname}:8033 |
|
yarn.resourcemanager.webapp.address |
|
The http address of the RM web application. |
<property>
<name>yarn.resourcemanager.webapp.address</name>
<value>192.168.100.200:8088</value>
</property> |
${yarn.resourcemanager.hostname}:8088 |
|
yarn.nodemanager.aux-services |
|
A comma separated list of services where service name should only contain a-zA-Z0-9_ and can not start with numbers |
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce.shuffle</value>
</property> |
|
|
yarn.nodemanager.aux-services.mapreduce.shuffle.class |
Yarn不支持 |
|
<property>
<name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name>
<value>org.apache.hadoop.mapred.ShuffleHandler</value>
</property> |
|
|
yarn.scheduler.maximum-allocation-mb |
|
The maximum allocation for every container request at the RM, in MBs. Memory requests higher than this will throw a InvalidResourceRequestException. |
<property>
<name>yarn.scheduler.maximum-allocation-mb</name>
<value>10000</value>
</property> |
8192 |
|
yarn.scheduler.minimum-allocation-mb |
|
The minimum allocation for every container request at the RM, in MBs. Memory requests lower than this will throw a InvalidResourceRequestException. |
<property>
<name>yarn.scheduler.minimum-allocation-mb</name>
<value>1000</value>
</property> |
1024 |
|
mapreduce.reduce.memory.mb |
Yarn不支持 |
|
<property>
<name>mapreduce.reduce.memory.mb</name>
<value>1000</value>
</property> |
|
|
yarn.nodemanager.local-dirs |
|
List of directories to store localized files in. An application's localized file directory will be found in: ${yarn.nodemanager.local-dirs}/usercache/${user}/appcache/application_${appid}. Individual
containers' work directories, called container_${contid}, will be subdirectories of this. |
<property>
<name>yarn.nodemanager.local-dirs</name>
<value>/uloc/hadoopdata/hadoop-${user.name}/yarn/nmlocal</value>
</property> |
${hadoop.tmp.dir}/nm-local-dir |
|
yarn.nodemanager.resource.memory-mb |
|
Amount of physical memory, in MB, that can be allocated for containers. |
<property>
<name>yarn.nodemanager.resource.memory-mb</name>
<value>4096</value>
</property> |
8192 |
不能设置过小(比如,1024)。否则job可以提交,但是无法运行。
实验中,2048都无法进行job运行。选择3172可以运行。 |
yarn.nodemanager.remote-app-log-dir |
|
Where to aggregate logs to. |
<property>
<name>yarn.nodemanager.remote-app-log-dir</name>
<value>/uloc/hadoopdata/hadoop-${user.name}/yarn/logs</value>
</property> |
/tmp/logs |
|
yarn.nodemanager.log-dirs |
|
Where to store container logs. An application's localized log directory will be found in ${yarn.nodemanager.log-dirs}/application_${appid}. Individual containers' log directories will be below this,
in directories named container_{$contid}. Each container directory will contain the files stderr, stdin, and syslog generated by that container. |
<property>
<name>yarn.nodemanager.log-dirs</name>
<value>/uloc/hadoopdata/hadoop-${user.name}/yarn/userlogs</value>
</property> |
${yarn.log.dir}/userlogs |
|
yarn.web-proxy.address |
|
The address for the web proxy as HOST:PORT, if this is not given then the proxy will run as part of the RM |
<property>
<name>yarn.web-proxy.address</name>
<value>192.168.100.200:54315</value>
</property> |
|
|
yarn.resourcemanager.hostname |
|
The hostname of the RM. |
<property>
<name>yarn.resourcemanager.hostname</name>
<value>robot123</value>
</property> |
0.0.0.0 |
|
yarn.nodemanager.address |
|
The address of the container manager in the NM. |
<property>
<name>yarn.nodemanager.address</name>
<value>192.168.100.200:11000</value>
</property> |
${yarn.nodemanager.hostname}:0 |
|