Summary on mapreduce.framework.name init error

 
An exception occured while performing the indexing job : 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.(Cluster.java:82)
    at org.apache.hadoop.mapreduce.Cluster.(Cluster.java:75)
    at org.apache.hadoop.mapreduce.Job$9.run(Job.java:1260)
    at org.apache.hadoop.mapreduce.Job$9.run(Job.java:1256)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:415)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1709)
    at org.apache.hadoop.mapreduce.Job.connect(Job.java:1255)
    at org.apache.hadoop.mapreduce.Job.submit(Job.java:1284)
    at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1308)
    at org.apache.phoenix.mapreduce.index.IndexTool1.run(IndexTool1.java:225)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
    at org.apache.phoenix.mapreduce.index.IndexTool1.main(IndexTool1.java:334)
 
 
 
Looks like i had a lucky day and went with this exception through 'all' of those causes. Summary:
  • wrong mapreduce.framework.name (yarn) 
  • missing mapreduce job-client jars or did not put it as the first dependency in maven ( put hadoop-mapreduce-client-jobclient at the first dependency)
  • wrong hadoop version (see Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses-submiting job2remoteClustr )
  • my configured 'yarn.ipc.client.factory.class' wasn't in the classpath of the yarn server's (just on the client)

转载于:https://www.cnblogs.com/lhfcws/p/6727045.html

你可能感兴趣的:(Summary on mapreduce.framework.name init error)