<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: HiveMetaStore ClassNotFoundException in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveMetaStore-ClassNotFoundException/m-p/3561#M610</link>
    <description>&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the docs for using the LZO parcel:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM4Ent/4.6.2/Cloudera-Manager-Installation-Guide/cmig_install_LZO_Compression.html"&gt;http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM4Ent/4.6.2/Cloudera-Manager-Installation-Guide/cmig_install_LZO_Compression.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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 haddop-env.sh it will have its classpath overwritten by your MR client env safety valve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So this is bad for client environment safety valves:&lt;/P&gt;&lt;P&gt;HADOOP_CLASSPATH=/my/new/stuff&lt;/P&gt;&lt;P&gt;and this is good:&lt;/P&gt;&lt;P&gt;HADOOP_CLASSPATH=&lt;SPAN&gt;$HADOOP_CLASSPATH:/my/new/stuff&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;</description>
    <pubDate>Tue, 26 Nov 2013 21:55:45 GMT</pubDate>
    <dc:creator>Darren</dc:creator>
    <dc:date>2013-11-26T21:55:45Z</dc:date>
    <item>
      <title>HiveMetaStore ClassNotFoundException</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveMetaStore-ClassNotFoundException/m-p/3559#M609</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I installed Hive using Cloudera Manager&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Version: Cloudera Standard 4.7.3 (#163 built by jenkins on 20131030-1651 git: 73aaa4b1d5948460ab9ae67fc12426aefb84b43c)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whenever I try and start the Hive Meta Store through the UI, I get the following error (from stderr)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;+ 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&lt;BR /&gt;Exception in thread "main" java.lang.ClassNotFoundException: org.apache.hadoop.hive.metastore.HiveMetaStore&lt;BR /&gt;at java.net.URLClassLoader$1.run(URLClassLoader.java:202)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at java.net.URLClassLoader.findClass(URLClassLoader.java:190)&lt;BR /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:306)&lt;BR /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:247)&lt;BR /&gt;at java.lang.Class.forName0(Native Method)&lt;BR /&gt;at java.lang.Class.forName(Class.java:247)&lt;BR /&gt;at org.apache.hadoop.util.RunJar.main(RunJar.java:201)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone encounter this before?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;dave&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:50:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveMetaStore-ClassNotFoundException/m-p/3559#M609</guid>
      <dc:creator>stampy88</dc:creator>
      <dc:date>2022-09-16T08:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetaStore ClassNotFoundException</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveMetaStore-ClassNotFoundException/m-p/3561#M610</link>
      <description>&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the docs for using the LZO parcel:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM4Ent/4.6.2/Cloudera-Manager-Installation-Guide/cmig_install_LZO_Compression.html"&gt;http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM4Ent/4.6.2/Cloudera-Manager-Installation-Guide/cmig_install_LZO_Compression.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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 haddop-env.sh it will have its classpath overwritten by your MR client env safety valve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So this is bad for client environment safety valves:&lt;/P&gt;&lt;P&gt;HADOOP_CLASSPATH=/my/new/stuff&lt;/P&gt;&lt;P&gt;and this is good:&lt;/P&gt;&lt;P&gt;HADOOP_CLASSPATH=&lt;SPAN&gt;$HADOOP_CLASSPATH:/my/new/stuff&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2013 21:55:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveMetaStore-ClassNotFoundException/m-p/3561#M610</guid>
      <dc:creator>Darren</dc:creator>
      <dc:date>2013-11-26T21:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetaStore ClassNotFoundException</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveMetaStore-ClassNotFoundException/m-p/3567#M611</link>
      <description>That was absolutely it Darren. Someone attempted to install LZO on this dev cluster and did it improperly.&lt;BR /&gt;&lt;BR /&gt;Thanks much!&lt;BR /&gt;&lt;BR /&gt;dave</description>
      <pubDate>Wed, 27 Nov 2013 00:44:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveMetaStore-ClassNotFoundException/m-p/3567#M611</guid>
      <dc:creator>stampy88</dc:creator>
      <dc:date>2013-11-27T00:44:56Z</dc:date>
    </item>
  </channel>
</rss>

