<?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/285233#M211697</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;In one of your previous update you have mentioned that you have added&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt;"the hiveserver2 jdbc url is configured in the spark config."&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, looks like the error that you are getting is because the mentioned properties are not found in the spark2-defaults config which is there in your classpath.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So can you please make sure that you have included the correct CLASSPATH which is pointing to correct spark-defaults which has the following properties added as mentioned in&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;"Required properties"&lt;/STRONG&gt;&lt;/EM&gt; Section of the following Doc:&amp;nbsp;&amp;nbsp;&lt;A href="https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.1.0/integrating-hive/content/hive_configure_a_spark_hive_connection.html" target="_blank" rel="noopener"&gt;https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.1.0/integrating-hive/content/hive_configure_a_spark_hive_connection.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You must add several Spark properties through&amp;nbsp;spark2-defaults&amp;nbsp;in Ambari to use the Hive Warehouse Connector for accessing data in Hive.&amp;nbsp;&amp;nbsp;Alternatively, configuration can be provided for each job&amp;nbsp;using --conf.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;spark.sql.hive.hiveserver2.jdbc.url&lt;P class="p"&gt;The URL for HiveServer2 Interactive&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;spark.datasource.hive.warehouse.metastoreUri&lt;P class="p"&gt;The URI for the metastore&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;spark.datasource.hive.warehouse.load.staging.dir&lt;P class="p"&gt;The HDFS temp directory for batch writes to Hive, /tmp for example&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;spark.hadoop.hive.llap.daemon.service.hosts&lt;P class="p"&gt;The application name for LLAP service&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;spark.hadoop.hive.zookeeper.quorum&lt;P class="p"&gt;The ZooKeeper hosts used by LLAP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Set the values of these properties as follows:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;spark.sql.hive.hiveserver2.jdbc.url&lt;P class="p"&gt;In Ambari, copy the value from Services &amp;gt; Hive &amp;gt; Summary &amp;gt; HIVESERVER2 INTERACTIVE JDBC URL.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;spark.datasource.hive.warehouse.metastoreUri&lt;P class="p"&gt;Copy the value from hive.metastore.uris. In Hive, at the hive&amp;gt; prompt, enter&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;set hive.metastore.uris&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and copy the output. For example,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;thrift://mycluster-1.com:9083.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;spark.hadoop.hive.llap.daemon.service.hosts&lt;P class="p"&gt;Copy value from Advanced hive-interactive-site &amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;hive.llap.daemon.service.hosts.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;spark.hadoop.hive.zookeeper.quorum&lt;P class="p"&gt;Copy the value from Advanced hive-sitehive.zookeeper.quorum.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Dec 2019 09:08:32 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2019-12-10T09:08:32Z</dc:date>
  </channel>
</rss>

