码迷,mamicode.com
首页 > 移动开发 > 详细

Hadoop: No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory).解决办法

时间:2015-07-19 11:39:52      阅读:244      评论:0      收藏:0      [点我收藏+]

标签:

在eclipse中运行Hadoop程序时出现如下问题:

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.
Exception in thread "main" java.io.IOException: Job failed!
    at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:836)
    at hadoop.in.action.WordCount.run(WordCount.java:89)
    at hadoop.in.action.WordCount.main(WordCount.java:98)

解决办法:将${HADOOP_HOME}/etc/hadoop/log4j.properties 拷贝到eclipse项目的sec文件夹下。

Hadoop: No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory).解决办法

标签:

原文地址:http://www.cnblogs.com/Murcielago/p/4658220.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!