<?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 HDP 3.1 Spark2 uses hive 1.2x jars in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/HDP-3-1-Spark2-uses-hive-1-2x-jars/m-p/357461#M237599</link>
    <description>&lt;P&gt;Spark on HDP-3.1 is copying hive-1.x jars in&amp;nbsp;&lt;SPAN class="prismjs css-rwxs72"&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;/usr/hdp/3.1.4.0-315/spark2/jars/ &lt;/STRONG&gt;directory.&lt;/SPAN&gt;&lt;/SPAN&gt; Due to this I am getting classpath issues when I tried to interact with hive-3 server via my spark code. Any specific reason why spark2 is still using hive-1.x jars. I also am supplying hive3.x jars via --jars option but no effect. Since hive-1.x jars are added first to the classpath all the classes are loaded from hive-1.x jar by &lt;STRONG&gt;AppClassLoader&lt;/STRONG&gt;. After moving them into&amp;nbsp;&lt;SPAN class="prismjs css-rwxs72"&gt;&lt;SPAN class=""&gt;/tmp/&lt;/SPAN&gt;&lt;/SPAN&gt; directory all the jobs are working fine because &lt;STRONG&gt;MutableUrlClassLoader&lt;/STRONG&gt; is loading classes from hive-3.x jars. Deleting them from &lt;SPAN class="prismjs css-rwxs72"&gt;&lt;SPAN class=""&gt;/usr/hdp/3.1.4.0-315/spark2/jars/&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp; is not a good solution. Is there any workaround to solve this issue. Any help would be appreciated. Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 14:17:09 GMT</pubDate>
    <dc:creator>krishna_challa</dc:creator>
    <dc:date>2022-11-11T14:17:09Z</dc:date>
    <item>
      <title>HDP 3.1 Spark2 uses hive 1.2x jars</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDP-3-1-Spark2-uses-hive-1-2x-jars/m-p/357461#M237599</link>
      <description>&lt;P&gt;Spark on HDP-3.1 is copying hive-1.x jars in&amp;nbsp;&lt;SPAN class="prismjs css-rwxs72"&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;/usr/hdp/3.1.4.0-315/spark2/jars/ &lt;/STRONG&gt;directory.&lt;/SPAN&gt;&lt;/SPAN&gt; Due to this I am getting classpath issues when I tried to interact with hive-3 server via my spark code. Any specific reason why spark2 is still using hive-1.x jars. I also am supplying hive3.x jars via --jars option but no effect. Since hive-1.x jars are added first to the classpath all the classes are loaded from hive-1.x jar by &lt;STRONG&gt;AppClassLoader&lt;/STRONG&gt;. After moving them into&amp;nbsp;&lt;SPAN class="prismjs css-rwxs72"&gt;&lt;SPAN class=""&gt;/tmp/&lt;/SPAN&gt;&lt;/SPAN&gt; directory all the jobs are working fine because &lt;STRONG&gt;MutableUrlClassLoader&lt;/STRONG&gt; is loading classes from hive-3.x jars. Deleting them from &lt;SPAN class="prismjs css-rwxs72"&gt;&lt;SPAN class=""&gt;/usr/hdp/3.1.4.0-315/spark2/jars/&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp; is not a good solution. Is there any workaround to solve this issue. Any help would be appreciated. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 14:17:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDP-3-1-Spark2-uses-hive-1-2x-jars/m-p/357461#M237599</guid>
      <dc:creator>krishna_challa</dc:creator>
      <dc:date>2022-11-11T14:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: HDP 3.1 Spark2 uses hive 1.2x jars</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDP-3-1-Spark2-uses-hive-1-2x-jars/m-p/394496#M248729</link>
      <description>&lt;P&gt;In HDP3 the default for Hive is the 1.2 jars.&amp;nbsp; In order to take advantage of the newer jars you will need to use Hive LLAP which uses Hive3.&lt;/P&gt;&lt;P&gt;You may also need to use the Hive Warehouse Connector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 13:51:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDP-3-1-Spark2-uses-hive-1-2x-jars/m-p/394496#M248729</guid>
      <dc:creator>MGreen</dc:creator>
      <dc:date>2024-10-03T13:51:01Z</dc:date>
    </item>
  </channel>
</rss>

