Cannot initialize cluster exception while running job on Hadoop 2
I was having similar issue, but yarn was not the issue.After adding following jars into my classpath issue got resolved:
- hadoop-mapreduce-client-jobclient-2.2.0.2.0.6.0-76
- hadoop-mapreduce-client-common-2.2.0.2.0.6.0-76
- hadoop-mapreduce-client-shuffle-2.2.0.2.0.6.0-76
You have uppercased Yarn
, which is probably why it can not resolve it. Try the lowercase version that is suggested in the official documentation.
<configuration> <property> <name>mapreduce.framework.name</name> <value>yarn</value> </property></configuration>
Looks like i had a lucky day and went with this exception through 'all' of those causes. Summary:
- wrong mapreduce.framework.name (see above)
- missing mapreduce job-client jars (see above)
- wrong 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)