MapReduce 运行实例出现log4j:WARN No appenders could be found for logge

syl2012 2014-09-10 10:34:30
MapReduce 运行实例出现如下警告,并且运行正常的MapReduce也会出现并且不会出现执行过程
log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/longge/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/longge/hive/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
...全文
8712 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
_chenby_ 2015-12-04
  • 打赏
  • 举报
回复
改了还是不行,能不能详细得讲解一下
syl2012 2014-10-23
  • 打赏
  • 举报
回复
大概怎样配置的
summual 2014-10-07
  • 打赏
  • 举报
回复
略懂的啊啊啊啊啊
GeekStuff 2014-10-06
  • 打赏
  • 举报
回复
这个问题是因为我们的log4j.properties文件配置不够完整,给它配置齐了就不会再出现这个问题。 在conf/log4j.properties添加如下: log4j.rootLogger=DEBUG, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%c{1} - %m%n log4j.logger.java.sql.PreparedStatement=DEBUG

932

社区成员

发帖
与我相关
我的任务
社区描述
云计算 云存储相关讨论
社区管理员
  • 云存储
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧