Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Tried to submit a MapReduce JOB in Hue but faced JA006 Error (

Tried to submit a MapReduce JOB in Hue but faced JA006 Error (

Explorer

Hello All -

I tried to execute a simple WordCount MapReduce JOB by using Hue Oozie Workflow but ended up with the following Error.
Error Code: JA006
Error Message: JA006: Call From quickstart.cloudera/127.0.0.1 to quickstart.cloudera:10020 failed on connection exception: java.net.ConnectException: Connection refused;

But the same JOB was successfully executed in CLI by using the following command

hadoop jar learning.jar /user/cloudera/Data/FruitCount/fruits.txt /user/cloudera/Data/FruitCount/output

 

Can you please help me if you have faced this scenario. 


job.properties
=========
oozie.use.system.libpath=True
nameNode=hdfs://quickstart.cloudera:8020
jobTracker=quickstart.cloudera:8032

Java Package name is mapReduce and Jar : learning.jar

WorkFlow.xml
================
<workflow-app name="My_Workflow" xmlns="uri:oozie:workflow:0.5">
<start to="mapreduce-c6a1"/>
<kill name="Kill">
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<action name="mapreduce-c6a1">
<map-reduce>
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<configuration>
<property>
<name>mapred.mapper.class</name>
<value>mapReduce.FruitCountMapper</value>
</property>
<property>
<name>mapred.reducer.class</name>
<value>mapReduce.FruitCountReducer</value>
</property>
<property>
<name>mapred.input.dir</name>
<value>/user/cloudera/Data/FruitCount/fruits.txt</value>
</property>
<property>
<name>mapred.output.dir</name>
<value>/user/cloudera/Data/FruitCount/NewOutput</value>
</property>
</configuration>
</map-reduce>
<ok to="End"/>
<error to="Kill"/>
</action>
<end name="End"/>
</workflow-app>

 

And also faced the same error when I ran the JOB in oozie CLI and the JOB -info 

 

Actions
------------------------------------------------------------------------------------------------------------------------------------
ID Status Ext ID Ext Status Err Code
------------------------------------------------------------------------------------------------------------------------------------
0000001-151121170809805-oozie-oozi-W@mapreduce-c6a1 START_MANUALjob_1448154472842_0004 RUNNING JA006
------------------------------------------------------------------------------------------------------------------------------------
0000001-151121170809805-oozie-oozi-W@:start: OK - OK -
------------------------------------------------------------------------------------------------------------------------------------

 

Thanks 

Gokul

1 REPLY 1
Highlighted

Re: Tried to submit a MapReduce JOB in Hue but faced JA006 Error (

Master Guru
Running a job via Oozie requires that your YARN Job History Server be up and functional/accessible. This is because Oozie relies on it to perform job <-> action tracking.

Please start/restart your JHS service and retry.
Don't have an account?
Coming from Hortonworks? Activate your account here