Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

ClassNotFoundException: org.apache.oozie.client.OozieClientException

avatar
Expert 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

avatar
Expert 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

avatar
Master 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.

avatar
Expert 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