hadoop log4j无法正常工作 [英] hadoop log4j not working
问题描述
我的作业在Hadoop 2.6.0上运行成功,但是记录器根本无法工作
My jobs are running successfully with Hadoop 2.6.0 but the logger is not working at all
我总是看到
log4j:WARN No appenders could be found for logger (org.apache.hadoop.mapreduce.v2.app.MRAppMaster).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
yarn-site.xml具有列出了log4j.properties文件的目录.我也尝试通过-Dlog4j.configuration
选项手动传递它.
yarn-site.xml has the directory with the log4j.properties file listed. I also tried passing it manually via -Dlog4j.configuration
option.
文件在此处: http://www.pastebin.ca/2966941
推荐答案
要为RM启用AppSummaryLogging,
To enable AppSummaryLogging for the RM,
将yarn.server.resourcemanager.appsummary.logger设置为,RMSUMMARY 在hadoop-env.sh中
set yarn.server.resourcemanager.appsummary.logger to ,RMSUMMARY in hadoop-env.sh
尝试执行log4j.properties中提到的上述步骤.不确定是否可行.
Try the above step as mentioned in log4j.properties. Not sure if it works.
这篇关于hadoop log4j无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!