<?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: &amp;quot;Using Hive with HBase&amp;quot; documentation is missing a jar file in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-Using-Hive-with-HBase-quot-documentation-is-missing-a/m-p/4915#M821</link>
    <description>&lt;P&gt;Thanks for the feedback, I will file a JIRA with our docs team to have this updated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Much appreciated!&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jan 2014 17:00:33 GMT</pubDate>
    <dc:creator>Clint</dc:creator>
    <dc:date>2014-01-15T17:00:33Z</dc:date>
    <item>
      <title>"Using Hive with HBase" documentation is missing a jar file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-Using-Hive-with-HBase-quot-documentation-is-missing-a/m-p/4891#M820</link>
      <description>&lt;P&gt;The "Using Hive with HBase", linked &lt;A target="_self" href="http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH4/latest/CDH4-Installation-Guide/cdh4ig_topic_18_10.html"&gt;here&lt;/A&gt;, contains the following instructions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;To allow Hive scripts to use HBase, add the following statements to the top of each script. Replace the &amp;lt;component_version&amp;gt; strings with current version numbers for CDH, Guava and the Hive HBase handler....

ADD JAR /usr/lib/hive/lib/zookeeper.jar;
ADD JAR /usr/lib/hive/lib/hive-hbase-handler-&amp;lt;Hive-HBase-Handler_version&amp;gt;-cdh&amp;lt;CDH_version&amp;gt;.jar
ADD JAR /usr/lib/hive/lib/guava-&amp;lt;Guava_version&amp;gt;.jar;

For example,

ADD JAR /usr/lib/hive/lib/zookeeper.jar;
ADD JAR /usr/lib/hive/lib/hive-hbase-handler-0.10.0-cdh4.4.0.jar
ADD JAR /usr/lib/hive/lib/guava-11.0.2.jar;

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when issuing a &lt;STRONG&gt;INSERT OVERWRITE TABLE hbase_table ... &lt;/STRONG&gt;command in hive, I received the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Error: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.mapreduce.TableInputFormatBase&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was fixed by adding the following jar in addition to the above jars:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ADD JAR /usr/lib/hive/lib/hbase.jar&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I think you should also point out the fact that people using Hive with HBase don't need to issue the &lt;STRONG&gt;ADD JAR&lt;/STRONG&gt; command at the begining of every single script; all they need to do is edit the hive-site.xml file on each node they execute Hive from and include the following property:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&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;file:///usr/lib/hive/lib/zookeeper.jar,file:///usr/lib/hive/lib/hive-hbase-handler-0.10.0-cdh4.5.0.jar,file:///usr/lib/hive/lib/guava-11.0.2.jar,file:///usr/lib/hive/lib/hbase.jar&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:52:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-Using-Hive-with-HBase-quot-documentation-is-missing-a/m-p/4891#M820</guid>
      <dc:creator>MatthewMoisen</dc:creator>
      <dc:date>2022-09-16T08:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: "Using Hive with HBase" documentation is missing a jar file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-Using-Hive-with-HBase-quot-documentation-is-missing-a/m-p/4915#M821</link>
      <description>&lt;P&gt;Thanks for the feedback, I will file a JIRA with our docs team to have this updated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Much appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 17:00:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-Using-Hive-with-HBase-quot-documentation-is-missing-a/m-p/4915#M821</guid>
      <dc:creator>Clint</dc:creator>
      <dc:date>2014-01-15T17:00:33Z</dc:date>
    </item>
  </channel>
</rss>

