AnsweredAssumed Answered

Oozie job submission fails with error "JA009: Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses."

Question asked by pvharish on Dec 9, 2015
Latest reply on May 16, 2016 by nirav
I recently installed Oozie on a single node .

**MaprBuildVersion : 4.0.2.29870.GA**

 **Oozie client build version**: **4.1.0-mapr-1506**

I was not able to submit my job. Following is my **job.properties** file

> nameNode=maprfs:///
> jobTracker=maprfs:///
> queueName=default
> oozie.wf.application.path=maprfs:/user/mapr/oozie-example/

**Error Log**

> 2015-12-09 16:03:57,188  INFO
> ActionStartXCommand:541 -
> SERVER[node1] USER[root] GROUP[-]
> TOKEN[] APP[appName-wf]
> JOB[0000001-151209153250850-oozie-mapr-W]
> ACTION[0000001-151209153250850-oozie-mapr-W@java-action]
> Next Retry, Attempt Number [1] in
> [60,000] milliseconds 2015-12-09
> 16:04:57,221  INFO
> ActionStartXCommand:541 -
> SERVER[node1] USER[root] GROUP[-]
> TOKEN[] APP[appName-wf]
> JOB[0000001-151209153250850-oozie-mapr-W]
> ACTION[0000001-151209153250850-oozie-mapr-W@java-action]
> Start action
> [0000001-151209153250850-oozie-mapr-W@java-action]
> with user-retry state : userRetryCount
> [0], userRetryMax [0],
> userRetryInterval [10] 2015-12-09
> 16:04:57,740  WARN
> ActionStartXCommand:544 -
> SERVER[node1] USER[root] GROUP[-]
> TOKEN[] APP[appName-wf]
> JOB[0000001-151209153250850-oozie-mapr-W]
> ACTION[0000001-151209153250850-oozie-mapr-W@java-action]
> Error starting action [java-action].
> ErrorType [TRANSIENT], ErrorCode
> [JA009], Message [JA009: Cannot
> initialize Cluster. Please check your
> configuration for
> mapreduce.framework.name and the
> correspond server addresses.]
> **org.apache.oozie.action.ActionExecutorException:**
> **JA009: Cannot initialize Cluster.
> Please check your configuration for
> mapreduce.framework.name and the
> correspond server addresses.**     at
> org.apache.oozie.action.ActionExecutor.convertExceptionHelper(ActionExecutor.java:412)
>     at
> org.apache.oozie.action.ActionExecutor.convertException(ActionExecutor.java:392)
>     at
> org.apache.oozie.action.hadoop.JavaActionExecutor.submitLauncher(JavaActionExecutor.java:979)
>     at
> org.apache.oozie.action.hadoop.JavaActionExecutor.start(JavaActionExecutor.java:1134)
>     at
> org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:228)
>     at
> org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:63)
>     at
> org.apache.oozie.command.XCommand.call(XCommand.java:281)
>     at
> org.apache.oozie.service.CallableQueueService$CallableWrapper.run(CallableQueueService.java:174)
>     at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>     at
> java.lang.Thread.run(Thread.java:745)
> 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:121)
>     at
> org.apache.hadoop.mapreduce.Cluster.(Cluster.java:83)
>     at
> org.apache.hadoop.mapreduce.Cluster.(Cluster.java:76)
>     at
> org.apache.hadoop.mapred.JobClient.init(JobClient.java:470)
>     at
> org.apache.hadoop.mapred.JobClient.(JobClient.java:449)
>     at
> org.apache.oozie.service.HadoopAccessorService$1.run(HadoopAccessorService.java:394)
>     at
> org.apache.oozie.service.HadoopAccessorService$1.run(HadoopAccessorService.java:392)
>     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:1566)
>     at
> org.apache.oozie.service.HadoopAccessorService.createJobClient(HadoopAccessorService.java:392)
>     at
> org.apache.oozie.action.hadoop.JavaActionExecutor.createJobClient(JavaActionExecutor.java:1177)
>     at
> org.apache.oozie.action.hadoop.JavaActionExecutor.submitLauncher(JavaActionExecutor.java:927)

I want to submit the job using mapreduce version 1 and not yarn.
I have also tried using the value **classic in /opt/mapr/oozie/oozie-4.1.0/hadoop-config.xml**  file for property **mapreduce.framework.name** (previously it used to be **yarn**).
But still not able to submit job. I am using a java-action work-flow.xml to be submitted.

Is there anything am missing in job.properties or something.
Can anyone help me overcome the issue.








Outcomes