Reply
New Contributor
Posts: 1
Registered: ‎05-08-2016

WordCount Hue exit code [1]

When I  try to run a mapreduce wordcount job on Hue, I'm getting this message " Main class [org.apache.oozie.action.hadoop.JavaMain], exit code [1] ", Although the code is running just fine whether on eclipse or by running the Jar file itself by passing the arguments directly from the terminal , even by running a Jar file from the Internet which is supposed to be working, It doesn't work, but the hadoop-examples file is working fine though.

PS. I got the code I'm using from Apache hadoop official site which is supposed to be the same one in the examples Jar file.Attached log files
 
Thanks in Advance.
Cloudera Employee
Posts: 723
Registered: ‎07-30-2013

Re: WordCount Hue exit code [1]

"

Error: java.lang.RuntimeException: java.lang.ClassNotFoundException:
Class WordCount$TokenizerMapper not found
at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2112)"

One of the class is not there or mismatching

New Contributor
Posts: 1
Registered: ‎05-08-2016

Re: WordCount Hue exit code [1]

I wrote the code, Included all the required dependencies and then I made the jar file as following,
Export >>Java >> Runnable JAR file
 
and tried the both options
1-Extract required libraries into generated JAR
2-Package required libraries into generated JAR
 
But I'm still getting the same message so what could be causing this problem