<?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: Unable to instantiate SparkSession with Hive support because Hive classes are not found in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-instantiate-SparkSession-with-Hive-support-because/m-p/348130#M235322</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;are you trying to run spark-shell or pyspark on a node where the Spark Gateway is not installed by any chance? The classes should come from a JAR file called spark-hive_&amp;lt;version&amp;gt;.jar on the host in the dir&lt;/P&gt;&lt;PRE&gt;/opt/cloudera/parcels/CDH/jars &lt;/PRE&gt;&lt;P&gt;Could you check if that exists?&lt;/P&gt;&lt;P&gt;Could you tell a bit more about what kind of jobs you are trying to run and from where?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Zsombor&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jul 2022 20:49:07 GMT</pubDate>
    <dc:creator>fzsombor</dc:creator>
    <dc:date>2022-07-19T20:49:07Z</dc:date>
    <item>
      <title>Unable to instantiate SparkSession with Hive support because Hive classes are not found</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-instantiate-SparkSession-with-Hive-support-because/m-p/347533#M235203</link>
      <description>&lt;P&gt;Spark Apache showing error below, when running jobs.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;+++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;BR /&gt;Exception in thread "main" java.lang.IllegalArgumentException: Unable to instantiate SparkSession with Hive support because Hive classes are not found.&lt;/P&gt;&lt;P&gt;at org.apache.spark.sql.SparkSession$Builder.enableHiveSupport(SparkSession.scala:878)&lt;/P&gt;&lt;P&gt;at br.com.recortv.dadosTratados_FaixaHoraria$.main(dadosTratados_FaixaHoraria.scala:39)&lt;/P&gt;&lt;P&gt;+++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 18:52:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-instantiate-SparkSession-with-Hive-support-because/m-p/347533#M235203</guid>
      <dc:creator>Camilo</dc:creator>
      <dc:date>2022-07-13T18:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to instantiate SparkSession with Hive support because Hive classes are not found</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-instantiate-SparkSession-with-Hive-support-because/m-p/348130#M235322</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;are you trying to run spark-shell or pyspark on a node where the Spark Gateway is not installed by any chance? The classes should come from a JAR file called spark-hive_&amp;lt;version&amp;gt;.jar on the host in the dir&lt;/P&gt;&lt;PRE&gt;/opt/cloudera/parcels/CDH/jars &lt;/PRE&gt;&lt;P&gt;Could you check if that exists?&lt;/P&gt;&lt;P&gt;Could you tell a bit more about what kind of jobs you are trying to run and from where?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Zsombor&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 20:49:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-instantiate-SparkSession-with-Hive-support-because/m-p/348130#M235322</guid>
      <dc:creator>fzsombor</dc:creator>
      <dc:date>2022-07-19T20:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to instantiate SparkSession with Hive support because Hive classes are not found</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-instantiate-SparkSession-with-Hive-support-because/m-p/351283#M236206</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/99191"&gt;@Camilo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you are sharing the exception you need to share more details. So it will help us to provide a solution in faster way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. How are you launching the spark job?&lt;/P&gt;&lt;P&gt;2. If you built application using maven or sbt built tool have you specified spark-hive.jar version. For example,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!-- https://mvnrepository.com/artifact/org.apache.spark/spark-hive --&amp;gt;
&amp;lt;dependency&amp;gt;
    &amp;lt;groupId&amp;gt;org.apache.spark&amp;lt;/groupId&amp;gt;
    &amp;lt;artifactId&amp;gt;spark-hive_2.12&amp;lt;/artifactId&amp;gt;
    &amp;lt;version&amp;gt;2.4.8&amp;lt;/version&amp;gt;
    &amp;lt;scope&amp;gt;provided&amp;lt;/scope&amp;gt;
&amp;lt;/dependency&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;References:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. &lt;A href="https://stackoverflow.com/questions/39444493/how-to-create-sparksession-with-hive-support-fails-with-hive-classes-are-not-f" target="_blank"&gt;https://stackoverflow.com/questions/39444493/how-to-create-sparksession-with-hive-support-fails-with-hive-classes-are-not-f&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;A href="https://mvnrepository.com/artifact/org.apache.spark/spark-hive" target="_blank"&gt;https://mvnrepository.com/artifact/org.apache.spark/spark-hive&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 03:59:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-instantiate-SparkSession-with-Hive-support-because/m-p/351283#M236206</guid>
      <dc:creator>RangaReddy</dc:creator>
      <dc:date>2022-09-01T03:59:55Z</dc:date>
    </item>
  </channel>
</rss>

