开启Hadoop/Yarn的日志监控功能
配置 yarn-site.xml 开启日志聚合 日志聚集是YARN提供的日志中央化管理功能,它能将运行完成的Container/任务日志上传到HDFS上,从而减轻NodeManager负载,且提供一个中央化存储和分析机制。默认情况下,Container/任务日志存在在各个NodeManager上 < ! -- Site specific YARN configuration properties -- > < configuration > < property > < name > yarn.nodemanager.aux-services < /name > < value > mapreduce_shuffle < /value > < /property > < ! -- 开启日志聚合 如果没有设置的话,会显示3个目录 -- > < property > < name > yarn.log-aggregation-enable < /name > < value > true < /value > < /property > < /configuration > 配置 mapred-site.xml < property > < ! -- 表示提交到hadoop中的任务采用yarn来运行,要是已经有该配置则无需重复配置 -- > < name > mapreduce