Hi Preshant, Chester, Mohammed,

I switched to Spark's Akka and now it works well. Thanks for the help!

(Need to exclude Akka from Spray dependencies, or specify it as provided)


Jianshi


On Thu, Oct 30, 2014 at 3:17 AM, Mohammed Guller <moham...@glassbeam.com>
wrote:

>  I am not sure about that.
>
>
>
> Can you try a Spray version built with 2.2.x along with Spark 1.1 and
> include the Akka dependencies in your project’s sbt file?
>
>
>
> Mohammed
>
>
>
> *From:* Jianshi Huang [mailto:jianshi.hu...@gmail.com]
> *Sent:* Tuesday, October 28, 2014 8:58 PM
> *To:* Mohammed Guller
> *Cc:* user
> *Subject:* Re: Spray client reports Exception:
> akka.actor.ActorSystem.dispatcher()Lscala/concurrent/ExecutionContext
>
>
>
> I'm using Spark built from HEAD, I think it uses modified Akka 2.3.4,
> right?
>
>
>
> Jianshi
>
>
>
> On Wed, Oct 29, 2014 at 5:53 AM, Mohammed Guller <moham...@glassbeam.com>
> wrote:
>
> Try a version built with Akka 2.2.x
>
>
>
> Mohammed
>
>
>
> *From:* Jianshi Huang [mailto:jianshi.hu...@gmail.com]
> *Sent:* Tuesday, October 28, 2014 3:03 AM
> *To:* user
> *Subject:* Spray client reports Exception:
> akka.actor.ActorSystem.dispatcher()Lscala/concurrent/ExecutionContext
>
>
>
> Hi,
>
>
>
> I got the following exceptions when using Spray client to write to
> OpenTSDB using its REST API.
>
>
>
>   Exception in thread "pool-10-thread-2" java.lang.NoSuchMethodError:
> akka.actor.ActorSystem.dispatcher()Lscala/concurrent/ExecutionContext;
>
>
>
> It worked locally in my Intellij but failed when I launch it from
> Spark-submit.
>
>
>
> Google suggested it's a compatibility issue in Akka. And I'm using latest
> Spark built from the HEAD, so the Akka used in Spark-submit is 2.3.4-spark.
>
>
>
> I tried both Spray 1.3.2 (built for Akka 2.3.6) and 1.3.1 (built for
> 2.3.4). Both failed with the same exception.
>
>
>
> Anyone has idea what went wrong? Need help!
>
>
>
> --
> Jianshi Huang
>
> LinkedIn: jianshi
> Twitter: @jshuang
> Github & Blog: http://huangjs.github.com/
>
>
>
>
>
> --
> Jianshi Huang
>
> LinkedIn: jianshi
> Twitter: @jshuang
> Github & Blog: http://huangjs.github.com/
>



-- 
Jianshi Huang

LinkedIn: jianshi
Twitter: @jshuang
Github & Blog: http://huangjs.github.com/

Reply via email to