<?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: HDP 3.1 Hive Connectivity Issue in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/HDP-3-1-Hive-Connectivity-Issue/m-p/285161#M211639</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/55994"&gt;@eswarloges&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From HDP 3.x onwards, to work with hive databases you should use the HiveWarehouseConnector library /usr/hdp/current/hive_warehouse_connector/hive-warehouse-connector-assembly-1.0.0.3.0.0.0-1634.jar as show in the below example&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;spark-shell --conf spark.sql.hive.hiveserver2.jdbc.url="jdbc:hive2://FQDN or IP:10000/" spark.datasource.hive.warehouse.load.staging.dir="/staging_dir" spark.hadoop.hive.zookeeper.quorum="zk_Quorum_ip's:2181" --jars /usr/hdp/current/hive_warehouse_connector/hive-warehouse-connector-assembly-1.0.0.3.0.0.0-1634.jar&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;val hive = com.hortonworks.spark.sql.hive.llap.HiveWarehouseBuilder.session(spark).build()&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;hive.showDatabases().show(100, false)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Could you try that and revert&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2019 18:14:36 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2019-12-09T18:14:36Z</dc:date>
  </channel>
</rss>

