<?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: NoSuchMethodError when submitting Spark jobs with CDH5.2 Spark App in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22370#M3989</link>
    <description>&lt;P&gt;Yes, that's fine then. You do not need to build against the CDH artifacts, even. You do need to use spark-submit. It could be an issue with the jobserver? how are you deploying that, and is it consistent with your CDH installation?&lt;/P&gt;</description>
    <pubDate>Fri, 05 Dec 2014 15:52:14 GMT</pubDate>
    <dc:creator>srowen</dc:creator>
    <dc:date>2014-12-05T15:52:14Z</dc:date>
    <item>
      <title>NoSuchMethodError when submitting Spark jobs with CDH5.2 Spark App</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22344#M3986</link>
      <description>&lt;P&gt;I downloaded the&amp;nbsp;&lt;A target="_blank" href="http://www.cloudera.com/content/cloudera/en/downloads/quickstart_vms/cdh-5-2-x.html"&gt;Quick Start VM with CDH 5.2.x&amp;nbsp;&amp;nbsp;&lt;/A&gt;&amp;nbsp;so that I could try out CDH 5.2 on VirtualBox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can run a Spark job using the command line, but I've been pretty frustrated trying to get a Spark job to run use the Spark app in Hue (&lt;A target="_blank" href="http://quickstart.cloudera:8888/spark)."&gt;http://quickstart.cloudera:8888/spark).&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No matter what I try I get a NoSuchMethodError:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Your application has the following error(s):

{ "status": "ERROR", "result": { "errorClass": "java.lang.RuntimeException", "cause": "org.apache.spark.SparkContext$.$lessinit$greater$default$2()Lscala/collection/Map;", "stack": ["spark.jobserver.JobManagerActor.createContextFromConfig(JobManagerActor.scala:241)", "spark.jobserver.JobManagerActor$$anonfun$wrappedReceive$1.applyOrElse(JobManagerActor.scala:94)", "scala.runtime.AbstractPartialFunction$mcVL$sp.apply$mcVL$sp(AbstractPartialFunction.scala:33)", "scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:33)", "scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:25)", "ooyala.common.akka.ActorStack$$anonfun$receive$1.applyOrElse(ActorStack.scala:33)", "scala.runtime.AbstractPartialFunction$mcVL$sp.apply$mcVL$sp(AbstractPartialFunction.scala:33)", "scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:33)", "scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:25)", "ooyala.common.akka.Slf4jLogging$$anonfun$receive$1$$anonfun$applyOrElse$1.apply$mcV$sp(Slf4jLogging.scala:26)", "ooyala.common.akka.Slf4jLogging$class.ooyala$common$akka$Slf4jLogging$$withAkkaSourceLogging(Slf4jLogging.scala:35)", "ooyala.common.akka.Slf4jLogging$$anonfun$receive$1.applyOrElse(Slf4jLogging.scala:25)", "scala.runtime.AbstractPartialFunction$mcVL$sp.apply$mcVL$sp(AbstractPartialFunction.scala:33)", "scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:33)", "scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:25)", "ooyala.common.akka.ActorMetrics$$anonfun$receive$1.applyOrElse(ActorMetrics.scala:24)", "akka.actor.ActorCell.receiveMessage(ActorCell.scala:498)", "akka.actor.ActorCell.invoke(ActorCell.scala:456)", "akka.dispatch.Mailbox.processMailbox(Mailbox.scala:237)", "akka.dispatch.Mailbox.run(Mailbox.scala:219)", "akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386)", "scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)", "scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)", "scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)", "scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)"], "causingClass": "java.lang.NoSuchMethodError", "message": "java.lang.NoSuchMethodError: org.apache.spark.SparkContext$.$lessinit$greater$default$2()Lscala/collection/Map;" } } (error 500)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attempted to build my own apps following some of the spark-jobserver guides and have followed the second half of&amp;nbsp;&lt;A target="_blank" href="http://gethue.com/get-started-with-spark-deploy-spark-server-and-compute-pi-from-your-web-browser/"&gt;http://gethue.com/get-started-with-spark-deploy-spark-server-and-compute-pi-from-your-web-browser/&lt;/A&gt; to clone the spark-jobobserver examples and build them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I find people complaining about something similar on the issues for spark-jobserver (&lt;A target="_blank" href="https://github.com/ooyala/spark-jobserver/issues/29)."&gt;https://github.com/ooyala/spark-jobserver/issues/29).&lt;/A&gt; &amp;nbsp;Those issues do seem pending still possibly...and the originator of the issue indicated it started failing when moving from spark 0.9.1 to 1.0, and the CDH 5.2 QuickStart VM I have DOES seem to have Spark 1.1.0, but I'm giving Cloudera the benefit of the doubt that they didn't do something like bump the version of Spark in this VM, making it incompatible with spark-jobserver which is used in Hue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate any guidance. &amp;nbsp;I'd like to get something working so I can start playing around with kicking off jobs and getting results from an external app with HTTP to the spark-jobserver.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 13:59:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22344#M3986</guid>
      <dc:creator>Chris_p</dc:creator>
      <dc:date>2026-04-21T13:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: NoSuchMethodError when submitting Spark jobs with CDH5.2 Spark App</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22363#M3987</link>
      <description>&lt;P&gt;That's a weird one indeed. NoSuchMethodError generally means you have built your app against a different version of a library than you run against.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CDH 5.2 contains Spark 1.1.0 plus a few critical upstream fixes. None of those changes should ever affect source or binary compatibility. You can always build against the exact CDH 5.2 artifacts anyway, but it shouldn't matter. 1.1.0, 1.1.1, is all the same from an API perspective.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, here, there should be no incompatibility at all anyway, since you should not be bundling Spark libs (or Hadoop libs) with your app. Are you marking them as 'provided' dependencies?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2014 14:10:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22363#M3987</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2014-12-05T14:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: NoSuchMethodError when submitting Spark jobs with CDH5.2 Spark App</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22369#M3988</link>
      <description>&lt;P&gt;Yep...I already tried building against the exact CDH 5.2 artifacts...from my pom.xml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&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-core_2.10&amp;lt;/artifactId&amp;gt;
			&amp;lt;version&amp;gt;1.1.0-cdh5.2.0&amp;lt;/version&amp;gt;
			&amp;lt;scope&amp;gt;provided&amp;lt;/scope&amp;gt;
		&amp;lt;/dependency&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;so I had to throw in the Cloudera repository in the pom.xml to reference that artifact. &amp;nbsp;I checked the generated jar after packaging with maven and verified that the only thing that was included was my simple test class. &amp;nbsp;I've modified my simple test class (Java)&amp;nbsp;to try different approaches...1.) Just having a main() method setting up the spark context in such a way that it works fine with spark-submit, and 2.) changing the class to implement SparkJob so it should be runnable by the jobserver and be provided the SparkContext&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I'm just using Java I'm not referencing any Scala libraries and not using the scala build tools...but just in case that was messing something up I setup the scala build tools and that is when I went to compile the spark-jobserver tests themselves and trying to run the&amp;nbsp;spark.jobserver.WordCountExample. &amp;nbsp;I didn't get a chance to verify which version of Scala those examples would be built against by default though...so its possible they were built against an older version.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2014 15:49:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22369#M3988</guid>
      <dc:creator>Chris_p</dc:creator>
      <dc:date>2014-12-05T15:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: NoSuchMethodError when submitting Spark jobs with CDH5.2 Spark App</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22370#M3989</link>
      <description>&lt;P&gt;Yes, that's fine then. You do not need to build against the CDH artifacts, even. You do need to use spark-submit. It could be an issue with the jobserver? how are you deploying that, and is it consistent with your CDH installation?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2014 15:52:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22370#M3989</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2014-12-05T15:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: NoSuchMethodError when submitting Spark jobs with CDH5.2 Spark App</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22371#M3990</link>
      <description>&lt;P&gt;Couldn't find a way to edit my post...but I meant I didn't yet verify which version of&amp;nbsp;&lt;STRONG&gt;Spark&lt;/STRONG&gt; the spark-jobserver examples would be built by default.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2014 15:52:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22371#M3990</guid>
      <dc:creator>Chris_p</dc:creator>
      <dc:date>2014-12-05T15:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: NoSuchMethodError when submitting Spark jobs with CDH5.2 Spark App</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22372#M3991</link>
      <description>&lt;P&gt;I'm just using the CDH5.2 quickstart vm. &amp;nbsp;As far as I could see the spark-jobserver was already included and running. &amp;nbsp;Maybe I'm mistaken? &amp;nbsp;And why do I need to execute with spark-submit? &amp;nbsp;I should just be able to navigate to the Spark Editor in Hue...upload my jar and execute it there, correct? &amp;nbsp;(Under the covers it is of course doing something)&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2014 15:55:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22372#M3991</guid>
      <dc:creator>Chris_p</dc:creator>
      <dc:date>2014-12-05T15:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: NoSuchMethodError when submitting Spark jobs with CDH5.2 Spark App</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22373#M3992</link>
      <description>&lt;P&gt;Got it, spark-submit works, but you want to use the jobserver. This could be my ignorance but I thought you still had to build and install the jobserver yourself. Hue doesn't seem to have it in CDH 5.2 but I haven't looked at the VM in a while. Are you building jobserver yourself or no?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2014 16:04:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22373#M3992</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2014-12-05T16:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: NoSuchMethodError when submitting Spark jobs with CDH5.2 Spark App</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22376#M3993</link>
      <description>&lt;P&gt;I'm not building the spark-jobserver myself...however it certainly seems to be included in the VM in the /var/lib/cloudera-quickstart/spark-jobserver directory along with some nohup output indicating it is likely running&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[cloudera@quickstart spark-jobserver]$ pwd
/var/lib/cloudera-quickstart/spark-jobserver
[cloudera@quickstart spark-jobserver]$ ls
gc.out                   nohup.out        settings.sh
log4j-server.properties  server_start.sh  spark-job-server.jar&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;There is also .pid file indicating the spark-jobserver is running which the pid matching up with jps...so it certainly seems to be running:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[cloudera@quickstart cloudera-quickstart]$ tail spark-jobserver.pid 
1869
[cloudera@quickstart cloudera-quickstart]$ sudo jps | grep JobServer
1869 JobServer&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2014 16:25:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22376#M3993</guid>
      <dc:creator>Chris_p</dc:creator>
      <dc:date>2014-12-05T16:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: NoSuchMethodError when submitting Spark jobs with CDH5.2 Spark App</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22388#M3994</link>
      <description>&lt;P&gt;Hm, I wonder if the jobserver just needs to be updated in the VM. You could try building and running your own. I've not used the jobserver myself. Someone else may have more insight or it may be a good question for the VM forum.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2014 20:27:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22388#M3994</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2014-12-05T20:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: NoSuchMethodError when submitting Spark jobs with CDH5.2 Spark App</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22406#M3995</link>
      <description>&lt;P&gt;It's quite possible it needs to be updated in the VM. It's included in the VM purely as a convenience - as it's not an officially supported or included part of CDH it doesn't go through all the same testing as everything else. If it does need to be updated, I can look at doing that for the next release and will post back here when it is.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Dec 2014 02:18:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22406#M3995</guid>
      <dc:creator>Sean</dc:creator>
      <dc:date>2014-12-06T02:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: NoSuchMethodError when submitting Spark jobs with CDH5.2 Spark App</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22414#M3996</link>
      <description>&lt;P&gt;Just to follow up, check out this thread (&lt;A href="http://community.cloudera.com/t5/Apache-Hadoop-Concepts-and/spark-jobserver-and-spark-jobs-in-Hue-on-CDH5-2/m-p/22410#M1369)" target="_blank"&gt;http://community.cloudera.com/t5/Apache-Hadoop-Concepts-and/spark-jobserver-and-spark-jobs-in-Hue-on-CDH5-2/m-p/22410#M1369)&lt;/A&gt; where I detail re-building the spark-jobserver and getting things to work. &amp;nbsp;So, it does look like the problem I encountered was due to the CDH5.2 QuickStart VM having a version of the spark-jobserver that was compiled against Spark 0.9.1 causing the error I encountered due to incompatibilities with Spark 1.1.0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Sun, 07 Dec 2014 15:23:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoSuchMethodError-when-submitting-Spark-jobs-with-CDH5-2/m-p/22414#M3996</guid>
      <dc:creator>Chris_p</dc:creator>
      <dc:date>2014-12-07T15:23:38Z</dc:date>
    </item>
  </channel>
</rss>

