<?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: Bad Symbolic reference on SQLContext.class when compiling with spark 1.6.0-cdh5.9.1 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Bad-Symbolic-reference-on-SQLContext-class-when-compiling/m-p/50238#M52539</link>
    <description>&lt;P&gt;Though compilation with&amp;nbsp;spark 1.6.0-cdh5.9.1 wasn't successful, my problem got solved. I compiled my code with&amp;nbsp;&lt;SPAN&gt;spark 1.6.0. That compiled successfully but while running, "java.lang.AbstractMethodError" was thrown in Spark logging api. I replaced spark logging with log4j in my code and after that it worked fine.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2017 13:26:18 GMT</pubDate>
    <dc:creator>subahugu</dc:creator>
    <dc:date>2017-02-01T13:26:18Z</dc:date>
    <item>
      <title>Bad Symbolic reference on SQLContext.class when compiling with spark 1.6.0-cdh5.9.1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Bad-Symbolic-reference-on-SQLContext-class-when-compiling/m-p/49942#M52538</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I am using CDH 5.9.1. I submitted a spark job which uses a jar compiled with spark 1.6.0. Got following exception :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Exception in thread "main" java.lang.AbstractMethodError
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.spark.Logging$class.log(Logging.scala:50)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;So, tried to build that jar with spark&amp;nbsp;&lt;/SPAN&gt;1.6.0-cdh5.9.1:&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;dependency&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;groupId&amp;gt;org.apache.spark&amp;lt;/groupId&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;artifactId&amp;gt;spark-core_2.10&amp;lt;/artifactId&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;version&amp;gt;1.6.0-cdh5.9.1&amp;lt;/version&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;scope&amp;gt;provided&amp;lt;/scope&amp;gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/dependency&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;It has 4 spark dependencies: spark-core, spark-catalyst, spark-hive and spark-sql. Getting following compilation error:&lt;/P&gt;&lt;PRE&gt;[ERROR] error: bad symbolic reference. A signature in SQLContext.class refers to term runtime
[INFO] in package scala.reflect which is not available.
[INFO] It may be completely missing from the current classpath, or the version on
[INFO] the classpath might be incompatible with the version used when compiling SQLContext.class.&lt;/PRE&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;scala-library 2.10.4 was used. Same issue was seen even changing it to 2.10.5.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:57:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Bad-Symbolic-reference-on-SQLContext-class-when-compiling/m-p/49942#M52538</guid>
      <dc:creator>subahugu</dc:creator>
      <dc:date>2022-09-16T10:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Symbolic reference on SQLContext.class when compiling with spark 1.6.0-cdh5.9.1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Bad-Symbolic-reference-on-SQLContext-class-when-compiling/m-p/50238#M52539</link>
      <description>&lt;P&gt;Though compilation with&amp;nbsp;spark 1.6.0-cdh5.9.1 wasn't successful, my problem got solved. I compiled my code with&amp;nbsp;&lt;SPAN&gt;spark 1.6.0. That compiled successfully but while running, "java.lang.AbstractMethodError" was thrown in Spark logging api. I replaced spark logging with log4j in my code and after that it worked fine.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 13:26:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Bad-Symbolic-reference-on-SQLContext-class-when-compiling/m-p/50238#M52539</guid>
      <dc:creator>subahugu</dc:creator>
      <dc:date>2017-02-01T13:26:18Z</dc:date>
    </item>
  </channel>
</rss>

