Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the co

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: Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses.  
    at org.apache.hadoop.mapreduce.Cluster.initialize(Cluster.java:120)  
    at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:82)  
    at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:75)  
    at org.apache.hadoop.mapreduce.Job$9.run(Job.java:1238)  
    at org.apache.hadoop.mapreduce.Job$9.run(Job.java:1234)  
    at java.security.AccessController.doPrivileged(Native Method)  
    at javax.security.auth.Subject.doAs(Unknown Source)  
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1491)  
    at org.apache.hadoop.mapreduce.Job.connect(Job.java:1233)  
    at org.apache.hadoop.mapreduce.Job.submit(Job.java:1262)  
    at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1286)  
    at com.gome.accesslog.statistic.WordCountExample.main(WordCountExample.java:72)  

  缺少Jar包:Hadoop-mapreduce-client-common-2.2.0.jar

<!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-mapreduce-client-common -->
	<dependency>
	    <groupId>org.apache.hadoop</groupId>
	    <artifactId>hadoop-mapreduce-client-common</artifactId>
	    <version>2.6.4</version>
	</dependency>
	

  

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值