Support Questions

Find answers, ask questions, and share your expertise

While starting ozozie: Error: Could not find or load main class org.apache.oozie.tools.OozieDBCLI

avatar
Rising Star

Hello guys

I am following the documentation to make oozie HA

http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.1/bk_Ambari_Users_Guide/content/_adding_an_ooz...

And after installing and changing the conf, when I restart oozie I got this error

Error: Could not find or load main class org.apache.oozie.tools.OozieDBCLI

Do I forget something?

1 ACCEPTED SOLUTION

avatar
Master Mentor

Please run the following command on both servers and compare. You might have missing packages.

On RHEL, command is

rpm -qa | oozie*

View solution in original post

3 REPLIES 3

avatar
Master Mentor

Please run the following command on both servers and compare. You might have missing packages.

On RHEL, command is

rpm -qa | oozie*

avatar
Rising Star

Thank you, acctually I was missing the package oozie-2-3-2-0-2950-server.

I paste the procedure

apt-get install oozie-2-3-2-0-2950-server

and then

hadoop fs -put /usr/hdp/current/oozie-server/libtools/oozie-tools-4.2.0.2.3.2.0-2950.jar /user/oozie/share/lib/lib_xxxxxxx/oozie/

avatar
Master Mentor

@jean rivera

Additionally please check if the "/usr/hdp/current/oozie-server/libtools/oozie-tools-x.x.x.x.x.x.jar" JAR exist or not on the host where you added the component? Example: "/usr/hdp/current/oozie-server/libtools/oozie-tools-4.2.0.2.5.3.0-37.jar" This jar contains the class "

org.apache.oozie.tools.OozieDBCLI".