yarn中有一个比较重要的配置yarn.nodemanager.local-dirs,若是配置的很差,在饱和状态运行下集群会出现不少问题:
1 默认配置${hadoop.tmp.dir}/nm-local-dir,系统盘一般只有几百G,配置在这里会常常报磁盘空间不足的错误;
2 配置到其中1个数据盘,好比/data0/,这个数据盘会常常没有响应,或者直接坏掉;
3 正确的配置是配置到全部的数据盘,一般是12个,其实yarn的description写的很清楚node
<property>app
<description>List of directories to store localized files in. Anoop
application's localized file directory will be found in:this
${yarn.nodemanager.local-dirs}/usercache/${user}/appcache/application_${appid}.blog
Individual containers' work directories, called container_${contid}, willip
be subdirectories of this.hadoop
</description>io
<name>yarn.nodemanager.local-dirs</name>集群
<value>${hadoop.tmp.dir}/nm-local-dir</value>配置
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/tmp/hadoop-tmp</value>
<description>A base for other temporary directories.</description>
</property>
CDH建议