hadoop log4j无法正常工作 [英] hadoop log4j not working

查看:243
本文介绍了hadoop log4j无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的作业在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆