<?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: Failure to use Hive StorageHandler in Phoenix in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Failure-to-use-Hive-StorageHandler-in-Phoenix/m-p/109353#M72203</link>
    <description>&lt;P&gt;If anyone has experience with the HiveStorage handler and has an opinion on whether it works with beeline, I'd appreciate your thoughts.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2016 20:55:24 GMT</pubDate>
    <dc:creator>phil_young</dc:creator>
    <dc:date>2016-10-03T20:55:24Z</dc:date>
    <item>
      <title>Failure to use Hive StorageHandler in Phoenix</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failure-to-use-Hive-StorageHandler-in-Phoenix/m-p/109351#M72201</link>
      <description>&lt;P&gt;I'm trying to use the Hive StorageHandler for Pheonix, but getting this error:&lt;/P&gt;&lt;P&gt;Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:No suitable driver found for jdbc:phoenix:ip-10-113-98-203.ec2.internal:2181:/hbase-unsecure;) (state=08S01,code=1)&lt;/P&gt;&lt;P&gt;I know that Hive and Phoenix are working on the cluster (which is HDP2.5).&lt;/P&gt;&lt;P&gt;This test shows that DNS is working, a valid Zookeeper server, and the ZNode for Hbase &lt;/P&gt;&lt;P&gt;zookeeper-client -server ip-10-113-98-203.ec2.internal:2181 ls / | tail -1&lt;/P&gt;&lt;P&gt;[registry, hiveserver2, zookeeper, hbase-unsecure, rmstore]&lt;/P&gt;&lt;P&gt;I add the jars in the hive script like this: &lt;/P&gt;&lt;P&gt;-- hadoop fs -copyFromLocal /usr/hdp/current/phoenix-client/phoenix-hive.jar /user/etl/hive_libs&lt;/P&gt;&lt;P&gt;ADD JAR hdfs:///user/etl/hive_libs/phoenix-hive.jar;&lt;/P&gt;&lt;P&gt;ADD JAR hdfs:///user/etl/hive_libs/phoenix-client.jar;&lt;/P&gt;&lt;P&gt;Using this example (https://phoenix.apache.org/hive_storage_handler.html) and replacing the the hostname and ZNode per above gives the command that fails.&lt;/P&gt;&lt;P&gt;createtablephoenix_table (&lt;/P&gt;&lt;P&gt;          s1 string,&lt;/P&gt;&lt;P&gt;          i1 int,&lt;/P&gt;&lt;P&gt;          f1 float,&lt;/P&gt;&lt;P&gt;          d1 double&lt;/P&gt;&lt;P&gt;        )&lt;/P&gt;&lt;P&gt;        STORED BY'org.apache.phoenix.hive.PhoenixStorageHandler'&lt;/P&gt;&lt;P&gt;        TBLPROPERTIES (&lt;/P&gt;&lt;P&gt;          "phoenix.table.name" = "phoenix_table",&lt;/P&gt;&lt;P&gt;          "phoenix.zookeeper.quorum" = "ip-10-113-98-203.ec2.internal",&lt;/P&gt;&lt;P&gt;          "phoenix.zookeeper.znode.parent" = "/hbase-unsecure",&lt;/P&gt;&lt;P&gt;          "phoenix.zookeeper.client.port" = "2181",&lt;/P&gt;&lt;P&gt;          "phoenix.rowkeys" = "s1, i1",&lt;/P&gt;&lt;P&gt;          "phoenix.column.mapping" = "s1:s1, i1:i1, f1:f1, d1:d1",&lt;/P&gt;&lt;P&gt;          "phoenix.table.options" = "SALT_BUCKETS=10, DATA_BLOCK_ENCODING='DIFF'"&lt;/P&gt;&lt;P&gt;        );&lt;/P&gt;&lt;P&gt;Does anyone who uses the Hive StorageHandler have an idea about this?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 04:57:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failure-to-use-Hive-StorageHandler-in-Phoenix/m-p/109351#M72201</guid>
      <dc:creator>phil_young</dc:creator>
      <dc:date>2016-10-03T04:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Failure to use Hive StorageHandler in Phoenix</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failure-to-use-Hive-StorageHandler-in-Phoenix/m-p/109352#M72202</link>
      <description>&lt;P&gt;I found the problem.... If I run the exact same commands with the "real" hive CLI command, it works. If I use beeline, it fails. This is troubling because "add jars" was done using an HDFS path, so the environment should be the same. &lt;/P&gt;&lt;P&gt;Worse, the hive CLI is headed for removal if/when beeline can take over. Let's hope that doesn't happen too soon.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 05:24:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failure-to-use-Hive-StorageHandler-in-Phoenix/m-p/109352#M72202</guid>
      <dc:creator>phil_young</dc:creator>
      <dc:date>2016-10-03T05:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Failure to use Hive StorageHandler in Phoenix</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failure-to-use-Hive-StorageHandler-in-Phoenix/m-p/109353#M72203</link>
      <description>&lt;P&gt;If anyone has experience with the HiveStorage handler and has an opinion on whether it works with beeline, I'd appreciate your thoughts.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 20:55:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failure-to-use-Hive-StorageHandler-in-Phoenix/m-p/109353#M72203</guid>
      <dc:creator>phil_young</dc:creator>
      <dc:date>2016-10-03T20:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Failure to use Hive StorageHandler in Phoenix</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failure-to-use-Hive-StorageHandler-in-Phoenix/m-p/109354#M72204</link>
      <description>&lt;P&gt;Follow up (for posterity): beeline does work with the storage handlers. I found that the changes I made to the hive aux path were being undone. &lt;/P&gt;&lt;P&gt;To fix this, I installed the phoenix-hive.jar on all nodes (workers and client/edge nodes) add added the following to "hive-env template" in Ambari (which, bounces HiveServer2 to make it take effect)&lt;/P&gt;&lt;P&gt;  export
HIVE_AUX_JARS_PATH=$HIVE_AUX_JARS_PATH:/opt/hive/auxpath/phoenix-hive.jar&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 00:18:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failure-to-use-Hive-StorageHandler-in-Phoenix/m-p/109354#M72204</guid>
      <dc:creator>phil_young</dc:creator>
      <dc:date>2016-10-04T00:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Failure to use Hive StorageHandler in Phoenix</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failure-to-use-Hive-StorageHandler-in-Phoenix/m-p/109355#M72205</link>
      <description>&lt;P&gt;Also, for posterity... to make this easier to manage, when using the built-in Phoenix, one can simply use the path to the phoenix-hive jar installed by HDP. So the path becomes&lt;/P&gt;&lt;P&gt;export HIVE_AUX_JARS_PATH=$HIVE_AUX_JARS_PATH:/usr/hdp/current/phoenix-client/phoenix-hive.jar&lt;/P&gt;&lt;P&gt;This is better, when using HDP/Ambari managed Phoenix since you won't need install new jars, or change this config if/when you upgrade Phoenix. Just bounce HiveServer2 as needed...&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 22:29:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failure-to-use-Hive-StorageHandler-in-Phoenix/m-p/109355#M72205</guid>
      <dc:creator>phil_young</dc:creator>
      <dc:date>2016-10-04T22:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Failure to use Hive StorageHandler in Phoenix</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failure-to-use-Hive-StorageHandler-in-Phoenix/m-p/109356#M72206</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/11700/phil-young.html"&gt;phillip young&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I was  facing  same kind of issue.  I have resolve this issue by using following steps:-&lt;/P&gt;&lt;P&gt;1) Edit Ambari-&amp;gt;Hive-&amp;gt;Configs-&amp;gt;Advanced-&amp;gt;Custom hive-site-&amp;gt;Add Property..., add the following properties based on your HBase configurations(you can search in Ambari-&amp;gt;HBase-&amp;gt;Configs):
custom hive-site.xml &lt;/P&gt;&lt;P&gt;hbase.zookeeper.quorum=xyz (find this property  value from hbase )&lt;/P&gt;&lt;P&gt;zookeeper.znode.parent=/hbase-unsecure  (find this property  value from hbase )&lt;/P&gt;&lt;P&gt;phoenix.schema.mapSystemTablesToNamespace=true&lt;/P&gt;&lt;P&gt;
phoenix.schema.isNamespaceMappingEnabled=true&lt;/P&gt;&lt;P&gt;2) Copy jar to /usr/hdp/current/hive-server2/auxlib from&lt;/P&gt;&lt;P&gt; 
/usr/hdp/2.5.6.0-40/phoenix/phoenix-4.7.0.2.5.6.0-40-hive.jar &lt;/P&gt;&lt;P&gt;/usr/hdp/2.5.6.0-40/phoenix/phoenix-hive-4.7.0.2.5.6.0-40-sources.jar If he jar is not working for you then just try to get following jar  phoenix-hive-4.7.0.2.5.3.0-37.jar and copy  this to /usr/hdp/current/hive-server2/auxlib&lt;/P&gt;&lt;P&gt;3) add property to custom-hive-env&lt;/P&gt;&lt;P&gt;HIVE_AUX_JARS_PATH=/usr/hdp/current/hive-server2/auxlib/4) Add follwoing property to custom-hbase-site.xmlphoenix.schema.mapSystemTablesToNamespace=true   phoenix.schema.isNamespaceMappingEnabled=true&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;5) Also run following command &lt;/P&gt;&lt;P&gt;1) jar uf /usr/hdp/current/hive-server2/auxlib/phoenix-4.7.0.2.5.6.0-40-client.jar /etc/hive/conf/hive-site.xml&lt;/P&gt;&lt;P&gt;
2) jar uf /usr/hdp/current/hive-server2/auxlib/phoenix-4.7.0.2.5.6.0-40-client.jar /etc/hbase/conf/hbase-site.xml&lt;/P&gt;&lt;P&gt;And I hope my solution will work for you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 01:01:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failure-to-use-Hive-StorageHandler-in-Phoenix/m-p/109356#M72206</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2017-09-14T01:01:48Z</dc:date>
    </item>
  </channel>
</rss>

