<!-- Site specific YARN configuration properties --> <!-- NodeManager获取数据的方式shuffle --> <property> <name>yarn.nodemanager.aux-services</name> <value>mapreduce_shuffle</value> </property> <!-- 指定YARN的ResourceManager的地址 --> <property> <name>yarn.resourcemanager.hostname</name> <value>node1</value> </property> <!-- yarn的web访问地址 --> <property> <description> The http address of the RM web application. If only a host is provided as the value, the webapp will be served on a random port. </description> <name>yarn.resourcemanager.webapp.address</name> <value>${yarn.resourcemanager.hostname}:8088</value> </property> <property> <description> The https address of the RM web application. If only a host is provided as the value, the webapp will be served on a random port. </description> <name>yarn.resourcemanager.webapp.https.address</name> <value>${yarn.resourcemanager.hostname}:8090</value> </property> <!-- 开启日志聚合功能,方便我们查看任务执行完成之后的日志记录 --> <property> <name>yarn.log-aggregation-enable</name> <value>true</value> </property> <!-- 设置聚合日志在hdfs上的保存时间 --> <property> <name>yarn.log-aggregation.retain-seconds</name> <value>604800</value> </property> </configuration>