<?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: java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/HBaseConfiguration in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-lang-NoClassDefFoundError-org-apache-hadoop-hbase/m-p/103232#M15475</link>
    <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/1198/koenigbodensee.html" nodeid="1198"&gt;@Gerd Koenig&lt;/A&gt; for extending the answer in terms of ambari and HDP.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jan 2016 14:49:33 GMT</pubDate>
    <dc:creator>asinghal</dc:creator>
    <dc:date>2016-01-20T14:49:33Z</dc:date>
    <item>
      <title>java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/HBaseConfiguration</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-lang-NoClassDefFoundError-org-apache-hadoop-hbase/m-p/103229#M15472</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to access a HBase-backed Hive table via 'select * from tbl_name', but seems like some HBase jar's are not in place.&lt;/P&gt;&lt;P&gt;Any help highly appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Details:&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://deala.corp:1&amp;gt; select * from tbl_name;
Error: java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/HBaseConfiguration (state=,code=0)&lt;/P&gt;&lt;P&gt;Regards, Gerd&lt;/P&gt;&lt;P&gt;PS: HDP2.2.4.2, Ambari 2.1.2&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 20:01:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-lang-NoClassDefFoundError-org-apache-hadoop-hbase/m-p/103229#M15472</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2016-01-19T20:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/HBaseConfiguration</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-lang-NoClassDefFoundError-org-apache-hadoop-hbase/m-p/103230#M15473</link>
      <description>&lt;P&gt;Append HBASE_CLASSPATH to HADOOP_CLASSPATH like below:-&lt;/P&gt;&lt;P&gt;export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:$HBASE_CLASSPATH   &lt;/P&gt;&lt;P&gt;//but before that confirm HBASE_CLASSPATH is properly set.&lt;/P&gt;&lt;P&gt;And &lt;/P&gt;&lt;P&gt;also you may need to set hive.aux.jars.path in hive-site.xml so that libraries are available in MR job.&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;hive.aux.jars.path&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;&amp;lt;hive_home&amp;gt;/lib/hive-hbase-handler-&amp;lt;version&amp;gt;.jar,
&amp;lt;hbase_home&amp;gt;/lib/hbase-client-&amp;lt;version&amp;gt;.jar, &amp;lt;hbase_home&amp;gt;/lib/hbase-server-&amp;lt;version&amp;gt;.jar,&amp;lt;hbase_home&amp;gt;/lib/hbase-protocol-&amp;lt;version&amp;gt;.jar,&amp;lt;hbase_home&amp;gt;/lib/zookeeper-&amp;lt;version&amp;gt;.jar&amp;lt;/value&amp;gt;
  &amp;lt;description&amp;gt;A comma separated list (with no spaces) of the jar files required for Hive-HBase integration&amp;lt;/description&amp;gt;
&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;replace the above paths with actual paths as per your setup.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 20:24:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-lang-NoClassDefFoundError-org-apache-hadoop-hbase/m-p/103230#M15473</guid>
      <dc:creator>asinghal</dc:creator>
      <dc:date>2016-01-19T20:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/HBaseConfiguration</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-lang-NoClassDefFoundError-org-apache-hadoop-hbase/m-p/103231#M15474</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;just to extend &lt;A rel="user" href="https://community.cloudera.com/users/627/asinghal.html" nodeid="627"&gt;@asinghal&lt;/A&gt; 's answer, the whole solution was:&lt;/P&gt;&lt;P&gt;1) adding &lt;/P&gt;&lt;PRE&gt;export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:$HBASE_CLASSPATH &lt;/PRE&gt;&lt;P&gt;to hadoop-env section in Ambari=&amp;gt;HDFS=&amp;gt;config&lt;/P&gt;&lt;P&gt;2) restart HDFS (will be shown in Ambari to restart all affected services)&lt;/P&gt;&lt;P&gt;3) restart Hive (this won't show up in Ambari, but needs to be restarted to apply the change from steps 1. and 2.)&lt;/P&gt;&lt;P&gt;Regards....&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 07:52:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-lang-NoClassDefFoundError-org-apache-hadoop-hbase/m-p/103231#M15474</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2016-01-20T07:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/HBaseConfiguration</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-lang-NoClassDefFoundError-org-apache-hadoop-hbase/m-p/103232#M15475</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/1198/koenigbodensee.html" nodeid="1198"&gt;@Gerd Koenig&lt;/A&gt; for extending the answer in terms of ambari and HDP.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 14:49:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-lang-NoClassDefFoundError-org-apache-hadoop-hbase/m-p/103232#M15475</guid>
      <dc:creator>asinghal</dc:creator>
      <dc:date>2016-01-20T14:49:33Z</dc:date>
    </item>
  </channel>
</rss>

