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.

upgrading hive metastore from 0.12 to 0.13 - No class found org.apache.hive.beeline.HiveSchemaTool

Highlighted

upgrading hive metastore from 0.12 to 0.13 - No class found org.apache.hive.beeline.HiveSchemaTool

New Contributor

while starting hive metastore after upgrading getting thhe bellow error

Exception in thread "main" java.lang.ClassNotFoundException: org.apache.hive.beeline.HiveSchemaTool 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) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:270) at org.apache.hadoop.util.RunJar.run(RunJar.java:214) at org.apache.hadoop.util.RunJar.main(RunJar.java:136)

1 REPLY 1

Re: upgrading hive metastore from 0.12 to 0.13 - No class found org.apache.hive.beeline.HiveSchemaTool

Guru

I think this is the case of softlinks not getting updated during upgrade. That jar is part of hive-beeline.jar.

Go to /usr/hdp/current/hive-metastore/lib and see if hive-beeline.jar has the correct soft link to hive-beeline-<new version>.jar. If it is not there, you can either try softlinking manually or running

hdp-select set hive-metastore <version> 

If you are using hdp-select, make sure softlinks are not broken after the command.

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