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. Want to know more about what has changed? Check out the Community News blog.

WordCount Hue exit code [1]

WordCount Hue exit code [1]

New Contributor

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.
2 REPLIES 2
Highlighted

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

Re: WordCount Hue exit code [1]

New Contributor
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