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.

CDH 5 could not locate Oozie sharelib.

CDH 5 could not locate Oozie sharelib.

New Contributor

 

I downloaded the demo VM CDH 5. CDH 5 could not locate Oozie sharelib when running Pig script. Hence I rerun setup.sh.

 

Why there is a java error when trying to run oozie-setup.sh

 

[cloudera@quickstart bin]$ sudo ./oozie-setup.sh sharelib create -fs hdfs://localhost:8020 -locallib /usr/lib/oozie/oozie-sharelib-yarn.tar.gz

 

..

...

 

setting CATALINA_OPTS="$CATALINA_OPTS -Xmx1024m"
setting OOZIE_CONFIG=/etc/oozie/conf
setting OOZIE_LOG=/var/log/oozie
Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.oozie.tools.OozieSharelibCLI
at gnu.java.lang.MainThread.run(libgcj.so.10)
Caused by: java.lang.ClassNotFoundException: org.apache.oozie.tools.OozieSharelibCLI not found in gnu.gcj.runtime.SystemClassLoader{urls=[], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
at gnu.java.lang.MainThread.run(libgcj.so.10)