New Contributor
Posts: 7
Registered: ‎09-19-2013
Accepted Solution

HiveMetaStore ClassNotFoundException

Hi all,

I installed Hive using Cloudera Manager


Version: Cloudera Standard 4.7.3 (#163 built by jenkins on 20131030-1651 git: 73aaa4b1d5948460ab9ae67fc12426aefb84b43c)


Whenever I try and start the Hive Meta Store through the UI, I get the following error (from stderr)


+ exec /opt/cloudera/parcels/CDH-4.5.0-1.cdh4.5.0.p0.30/lib/hive/bin/hive --config /run/cloudera-scm-agent/process/1470-hive-HIVEMETASTORE --service metastore -p 9083
Exception in thread "main" java.lang.ClassNotFoundException: org.apache.hadoop.hive.metastore.HiveMetaStore
at Method)
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(
at org.apache.hadoop.util.RunJar.main(


Anyone encounter this before?



Cloudera Employee
Posts: 509
Registered: ‎07-30-2013

Re: HiveMetaStore ClassNotFoundException

Hi Dave,


This is usually caused because you have set a bad safety valve for MapReduce or Yarn client enviornment, usually because you installed LZO and made a mistake when the safety valve for MR to pick up the parcel.


Here's the docs for using the LZO parcel:


The mistake people often make is forgetting to append to the existing value for HADOOP_CLASSPATH or any other variable. Since Hive uses MR client configs, when it sources it will have its classpath overwritten by your MR client env safety valve.


So this is bad for client environment safety valves:


and this is good:





New Contributor
Posts: 7
Registered: ‎09-19-2013

Re: HiveMetaStore ClassNotFoundException

That was absolutely it Darren. Someone attempted to install LZO on this dev cluster and did it improperly.

Thanks much!