<?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: spark sql is not working on CDH5.3 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/24966#M5090</link>
    <description>&lt;P&gt;my bad. I fixed the typo. But still no luck. Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Feb 2015 20:03:32 GMT</pubDate>
    <dc:creator>JPMChaseBigData</dc:creator>
    <dc:date>2015-02-23T20:03:32Z</dc:date>
    <item>
      <title>spark sql is not working on CDH5.3</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/24958#M5086</link>
      <description>&lt;P&gt;We upgraded to CDH5.3. spark-sql is not working. Could any bodyk please provide us am I missing any steps we need to follow to spark-sql to work. I'm getting the below error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps we did:&lt;/P&gt;&lt;P&gt;1.copy the hive-site.xml to /etc/spark/conf&lt;/P&gt;&lt;P&gt;2.Try to start the thrifiserver but getting the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/opt/cloudera/parcels/CDH/lib/spark/sbin/start-thriftserver.sh&lt;BR /&gt;starting org.apache.spark.sql.hive.thriftserver.HiveThriftServer2, logging to /var/log/spark/spark-root-org.apache.spark.sql.hive.thriftserver.HiveThriftServer2-1-rkqcrl-odshaun01.out&lt;BR /&gt;failed to launch org.apache.spark.sql.hive.thriftserver.HiveThriftServer2:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.lang.ClassLoader.loadClass(ClassLoader.java:358)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;... 18 more&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bash-4.1$ ./spark-sql&lt;BR /&gt;Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hive/cli/CliDriver&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.ClassLoader.defineClass1(Native Method)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.ClassLoader.defineClass(ClassLoader.java:800)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.URLClassLoader.access$100(URLClassLoader.java:71)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.URLClassLoader$1.run(URLClassLoader.java:361)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.URLClassLoader$1.run(URLClassLoader.java:355)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.URLClassLoader.findClass(URLClassLoader.java:354)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.ClassLoader.loadClass(ClassLoader.java:425)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.ClassLoader.loadClass(ClassLoader.java:412)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.ClassLoader.loadClass(ClassLoader.java:358)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.Class.forName0(Native Method)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.Class.forName(Class.java:270)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.spark.deploy.SparkSubmit$.launch(SparkSubmit.scala:342)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:75)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)&lt;BR /&gt;Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.cli.CliDriver&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.URLClassLoader$1.run(URLClassLoader.java:366)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.URLClassLoader$1.run(URLClassLoader.java:355)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.URLClassLoader.findClass(URLClassLoader.java:354)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.ClassLoader.loadClass(ClassLoader.java:425)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.ClassLoader.loadClass(ClassLoader.java:358)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ... 18 more&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venky&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:22:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/24958#M5086</guid>
      <dc:creator>JPMChaseBigData</dc:creator>
      <dc:date>2022-09-16T09:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: spark sql is not working on CDH5.3</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/24960#M5087</link>
      <description>&lt;P&gt;So, Spark SQL is shipped unchanged from upstream. It should mostly work as-is, as a result. It is not formally supported, as it's still an alpha component. Here in particular, have a look at other threads on this forum. I&amp;nbsp;&lt;EM&gt;think&lt;/EM&gt; the issue is that Spark SQL is not yet compatible with the later version of Hive in CDH, so it's not built with Hive support. Some of it should still work, but you have to add the Hive JARs to the classpath at least.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2015 18:58:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/24960#M5087</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2015-02-23T18:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: spark sql is not working on CDH5.3</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/24963#M5088</link>
      <description>&lt;P&gt;Thanks for quick reply. I have added the path too.&amp;nbsp; But still not working. correct me if I'm wrong or missing something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;BR /&gt;export JAVA_HOME=/usr/java/jdk1.7.0_55&lt;BR /&gt;SPARK_HOME=/opt/cloudera/parcels/CDH/lib/spark/&lt;BR /&gt;&lt;BR /&gt;SPARK_CLASSPATH=/opt/cloudera/parcels/CDH/lib/spark/lib/*.jar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JARS=""&lt;BR /&gt;for j in `ls /opt/cloudera/parcels/CDH/lib/hadoop/client/*.jar`&lt;BR /&gt;do&lt;BR /&gt;JARS=$JARS:$j&lt;BR /&gt;JARS1=$j,$JARS1&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;CLI=/opt/cloudera/parcels/CDH/lib/hive/lib/hive-cli-0.13.1-cdh5.3.1.jar:/opt/cloudera/parcels/CDH/lib/hive/lib/hive-common-0.13.1-cdh5.3.1.jar:=/opt/cloudera/parcels/CDH/lib/hive/lib/hive-jdbc-0.13.1-cdh5.3.1.jar:/opt/cloudera/parcels/CDH/lib/hive/lib/hive-exec-0.13.1-cdh5.3.1.jar&lt;BR /&gt;$SPARK_CLASSPATH:$JARS:$CLI&lt;BR /&gt;&lt;BR /&gt;$SPARK_HOME/bin/spark-sql --master local&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2015 19:26:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/24963#M5088</guid>
      <dc:creator>JPMChaseBigData</dc:creator>
      <dc:date>2015-02-23T19:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: spark sql is not working on CDH5.3</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/24964#M5089</link>
      <description>&lt;P&gt;You're probably beyond my knowledge. But the immediate error is easy enough to understand; it can't find the Hive classes, so something is still wrong there. I see a typo in your path for example; there are two jars separated by "&lt;SPAN&gt;:=" Is it just that?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2015 19:28:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/24964#M5089</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2015-02-23T19:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: spark sql is not working on CDH5.3</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/24966#M5090</link>
      <description>&lt;P&gt;my bad. I fixed the typo. But still no luck. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2015 20:03:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/24966#M5090</guid>
      <dc:creator>JPMChaseBigData</dc:creator>
      <dc:date>2015-02-23T20:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: spark sql is not working on CDH5.3</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/25841#M5091</link>
      <description>i have the same issue. Even have hive classpath included, it still gives error.&lt;BR /&gt;&lt;BR /&gt;Anyone has luck on this?</description>
      <pubDate>Tue, 24 Mar 2015 17:52:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/25841#M5091</guid>
      <dc:creator>zhefeng</dc:creator>
      <dc:date>2015-03-24T17:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: spark sql is not working on CDH5.3</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/25843#M5092</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is bug in the classpath.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need add a line int&amp;nbsp;the&amp;nbsp;compute-classpath.sh&amp;nbsp;CLASSPATH="$CLASSPATH:/opt/cloudera/parcels/CDH/lib/hive/lib/*" .&amp;nbsp; Then it will work without any issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2015 18:32:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/25843#M5092</guid>
      <dc:creator>JPMChaseBigData</dc:creator>
      <dc:date>2015-03-24T18:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: spark sql is not working on CDH5.3</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/25885#M5093</link>
      <description>thanks a lot! this does the trick:)</description>
      <pubDate>Wed, 25 Mar 2015 16:35:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/25885#M5093</guid>
      <dc:creator>zhefeng</dc:creator>
      <dc:date>2015-03-25T16:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: spark sql is not working on CDH5.3</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/25887#M5094</link>
      <description>&lt;P&gt;To add a little color, yes you can do that, although the CLASSPATH intentionally does not include Hive, since as I understand, Spark doesn't work with the later versions of Hive that CDH 5.3 and beyond use. It still may work enough to do what you need, so, have at it. But you may hit some incompatibilities.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 16:48:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/25887#M5094</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2015-03-25T16:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: spark sql is not working on CDH5.3</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/25889#M5095</link>
      <description>&lt;P&gt;I agree. What is the best solution for this?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 19:37:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/25889#M5095</guid>
      <dc:creator>JPMChaseBigData</dc:creator>
      <dc:date>2015-03-25T19:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: spark sql is not working on CDH5.3</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/28159#M5096</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Can you write what version of CDH, Spark and Hive working properly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Miro&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 07:55:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/28159#M5096</guid>
      <dc:creator>miro</dc:creator>
      <dc:date>2015-06-03T07:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: spark sql is not working on CDH5.3</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/33434#M5097</link>
      <description>&lt;P&gt;So finally what version of CDH will Spark &amp;amp; Hive perfectly together?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 19:27:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-sql-is-not-working-on-CDH5-3/m-p/33434#M5097</guid>
      <dc:creator>diwan.chirayu1367174791</dc:creator>
      <dc:date>2015-10-26T19:27:11Z</dc:date>
    </item>
  </channel>
</rss>

