hadoop log4j not working

妖精的绣舞 提交于 2020-01-03 05:27:08

问题


My jobs are running successfully with Hadoop 2.6.0 but the logger is not working at all

I always see

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 has the directory with the log4j.properties file listed. I also tried passing it manually via -Dlog4j.configuration option.

the file is here: http://www.pastebin.ca/2966941


回答1:


To enable AppSummaryLogging for the RM,

set yarn.server.resourcemanager.appsummary.logger to ,RMSUMMARY in hadoop-env.sh

Try the above step as mentioned in log4j.properties. Not sure if it works.



来源:https://stackoverflow.com/questions/29361264/hadoop-log4j-not-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!