Created 06-30-2016 03:03 PM
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
Created 07-05-2016 05:41 PM
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
Created 06-30-2016 03:58 PM
@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.
Created 07-05-2016 05:41 PM
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