You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Deepak Nulu <de...@gmail.com> on 2014/03/07 00:45:10 UTC

Re: NoSuchMethodError - Akka - Props

I see the same error. I am trying a standalone example integrated into a Play
Framework v2.2.2 application. The error occurs when I try to create a Spark
Streaming Context. Compilation succeeds, so I am guessing it has to do with
the version of Akka getting picked up at runtime.



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/NoSuchMethodError-Akka-Props-tp2191p2375.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Please remove me from the mail list.//Re: NoSuchMethodError - Akka - Props

Posted by "Qiuxin (robert)" <qi...@huawei.com>.
Please remove me from the mail list.

-----邮件原件-----
发件人: Deepak Nulu [mailto:deepaknulu@gmail.com] 
发送时间: 2014年3月7日 7:45
收件人: user@spark.incubator.apache.org
主题: Re: NoSuchMethodError - Akka - Props

I see the same error. I am trying a standalone example integrated into a Play Framework v2.2.2 application. The error occurs when I try to create a Spark Streaming Context. Compilation succeeds, so I am guessing it has to do with the version of Akka getting picked up at runtime.



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/NoSuchMethodError-Akka-Props-tp2191p2375.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: NoSuchMethodError - Akka - Props

Posted by Tathagata Das <ta...@gmail.com>.
Are you launching your application using scala or java command? scala
command bring in a version of Akka that we have found to cause conflicts
with Spark's version for Akka. So its best to launch using Java.

TD



On Thu, Mar 6, 2014 at 3:45 PM, Deepak Nulu <de...@gmail.com> wrote:

> I see the same error. I am trying a standalone example integrated into a
> Play
> Framework v2.2.2 application. The error occurs when I try to create a Spark
> Streaming Context. Compilation succeeds, so I am guessing it has to do with
> the version of Akka getting picked up at runtime.
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/NoSuchMethodError-Akka-Props-tp2191p2375.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>

Re: NoSuchMethodError - Akka - Props

Posted by Deepak Nulu <de...@gmail.com>.
I was just able to fix this in my environment.

By looking at the repository/cache in my Play Framework installation, I was
able to determine that spark-0.9.0-incubating uses Akka version 2.2.3.
Similarly, looking at repository/local revealed that Play Framework 2.2.2
ships with Akka version 2.2.0.

So I added the following to my play project dependencies:

    "com.typesafe.akka" %% "akka-actor" % "2.2.3",
    "com.typesafe.akka" %% "akka-slf4j" % "2.2.3",

That fixed the runtime exception and my standalone spark program works fine
now.

-deepak




--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/NoSuchMethodError-Akka-Props-tp2191p2377.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.