Reply
Explorer
Posts: 7
Registered: ‎05-18-2015

Caused by: java.io.IOException: Cannot initialize Cluster.

My cluster is all configured and managed with Cloudera Express.

 

I am trying to run a new job on accumulo and get this error.

 

Caused by: 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:1267)
	at org.apache.hadoop.mapreduce.Job$9.run(Job.java:1263)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:422)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1692)
	at org.apache.hadoop.mapreduce.Job.connect(Job.java:1262)
	at org.apache.hadoop.mapreduce.Job.submit(Job.java:1291)
	at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1315)

Any clues on how to troubleshoot?

Posts: 1,566
Kudos: 287
Solutions: 240
Registered: ‎07-31-2013

Re: Caused by: java.io.IOException: Cannot initialize Cluster.

How are you invoking your job? Do you use 'hadoop jar …' to invoke your jar, or are you triggering it with a more raw 'java -cp …' style CLI? If the latter, ensure you also pass the directory '/etc/hadoop/conf/' as an early element on your -cp/CLASSPATH-env.

Also ensure your submitting host has a YARN+MR2 gateway deployed on it: https://www.cloudera.com/documentation/enterprise/latest/topics/cm_intro_primer.html#concept_fgj_tny...
Backline Customer Operations Engineer
Announcements