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.

ClassNotFoundException: org.apache.oozie.client.OozieClientException

Solved Go to solution
Highlighted

ClassNotFoundException: org.apache.oozie.client.OozieClientException

Contributor

We are trying to create a Java application that creates an Oozie client to submit and run an Oozie job.

Stack - HDP 2.4

hortonworks@hdputility02:~/deployments/kmart/lib$ yarn jar feed.jar com.hooklogic.tools.OozieFTPGetAction

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/oozie/client/OozieClientException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:278) at org.apache.hadoop.util.RunJar.run(RunJar.java:214) at org.apache.hadoop.util.RunJar.main(RunJar.java:136)

Caused by: java.lang.ClassNotFoundException: org.apache.oozie.client.OozieClientException at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 4 more

1 ACCEPTED SOLUTION

Accepted Solutions

Re: ClassNotFoundException: org.apache.oozie.client.OozieClientException

Contributor

Here is the solution :

hdfs dfs -put /usr/hdp/current/oozie-client/lib/*.jar /user/oozie/share/lib/*/oozie/

oozie admin -oozie http://x:11000/oozie -shareliblist oozie

oozie admin -oozie http://x:11000/oozie -sharelibupdate oozie

oozie admin -oozie http://x:11000/oozie -shareliblist oozie | grep client

View solution in original post

2 REPLIES 2
Highlighted

Re: ClassNotFoundException: org.apache.oozie.client.OozieClientException

Super Guru

@avoma Can you verify you have oozie client install on all the nodes. From the error logs it seems the client is missing on the node the job is running.

Re: ClassNotFoundException: org.apache.oozie.client.OozieClientException

Contributor

Here is the solution :

hdfs dfs -put /usr/hdp/current/oozie-client/lib/*.jar /user/oozie/share/lib/*/oozie/

oozie admin -oozie http://x:11000/oozie -shareliblist oozie

oozie admin -oozie http://x:11000/oozie -sharelibupdate oozie

oozie admin -oozie http://x:11000/oozie -shareliblist oozie | grep client

View solution in original post

Don't have an account?
Coming from Hortonworks? Activate your account here