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 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>
	

  

目录
相关文章
|
7月前
error: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
error: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
158 0
|
7月前
|
定位技术
ArcGIS中ERROR 999999报错Configuration RasterCommander ImageServer can not be started解决
ArcGIS中ERROR 999999报错Configuration RasterCommander ImageServer can not be started解决
354 1
|
关系型数据库 MySQL 数据库
Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
459 0
There is no configured/running web-servers found Please, run any web-configuration and hit the
There is no configured/running web-servers found Please, run any web-configuration and hit the
138 0
|
XML 应用服务中间件 数据格式
控制台报错: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper
控制台报错: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper
98 0
控制台报错: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper
|
XML 数据格式
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘ to ‘org.eclips
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘ to ‘org.eclips
111 0
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘ to ‘org.eclips
|
XML 应用服务中间件 Android开发
解决方案:Tomcat警告 [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘
解决方案:Tomcat警告 [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘
解决方案:Tomcat警告 [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘