hadoop log4j不工作[英] hadoop log4j not working

本文是小编为大家收集整理的关于hadoop log4j不工作的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

我的工作正成功地使用Hadoop 2.6.0运行,但记录器根本不起作用

我总是看到

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选项手动传递它.

文件在这里: http://www.pastebin.ca/2966941 >

推荐答案

启用RM的应用程序MummaryLogging,

设置yarn.server.resourcemanager.appsummary.logger,rmsummary 在hadoop-env.sh

尝试上述步骤,如log4j.properties中所述.不知道它是否有效.

本文地址:https://www.itbaoku.cn/post/1574965.html

问题描述

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

推荐答案

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.