spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tyc <nju...@gmail.com>
Subject Re: How to solve sbt.ResolveException error?
Date Tue, 05 Nov 2013 12:57:54 GMT
Hi Imran,

That works! Thank you very much.

Best regards,
Yongchao


2013/11/4 Imran Rashid <imran@quantifind.com>

> Hi,
>
> we ran into this problem recently too.  This is our solution, though I
> have to say, I have no idea what it means, I'm not an sbt expert.  These
> are the changes we made to our own project's sbt config in
> project/Build.scala to get it to work:
>
> bash-3.2$ git show -p 3d52ea381cf53346f20c8558ce67cccbf6b361d7
> commit 3d52ea381cf53346f20c8558ce67cccbf6b361d7
> Author: Imran Rashid <imran@quantifind.com>
> Date:   Tue Oct 29 08:21:55 2013 -0500
>
>     fix jetty orbit dep
>
> diff --git a/project/Build.scala b/project/Build.scala
> index 9f1cf03..a1057c9 100644
> --- a/project/Build.scala
> +++ b/project/Build.scala
> @@ -267,6 +267,10 @@ object QFBuild extends Build {
>      "Akka Repo" at "http://repo.akka.io/releases",
>      "twitter repo" at "http://maven.twttr.com"
>    )
> +
> +  classpathTypes ~= (_ + "orbit")
> +
> +
>    val sharedLibraryDependencies = Seq(
> @@ -353,7 +357,11 @@ object QFBuild extends Build {
>
>      // Unfiltered (can be updated)
>      "net.databinder" % "unfiltered-jetty_2.9.3" % "0.6.7",
> -    "net.databinder" % "unfiltered-filter_2.9.3" % "0.6.7"
> +    "net.databinder" % "unfiltered-filter_2.9.3" % "0.6.7",
> +
> +    "org.eclipse.jetty.orbit" % "javax.servlet" % "3.0.0.v201112011016"
> artifacts (Artifact("javax.servlet", "jar", "jar")),
> +    "org.eclipse.jetty" % "jetty-webapp" % "8.1.4.v20120524"
> +
>    )
>
>
>
> On Mon, Nov 4, 2013 at 12:57 PM, tyc <njutyc@gmail.com> wrote:
>
>> Hello guys,
>>
>> I am trying to learn Spark.
>>
>> I follow the Quick Start (
>> http://spark.incubator.apache.org/docs/latest/quick-start.html). When I
>> tried to execute a standalone App in Scala, it has the error like shown in
>> below:
>>
>> [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
>> [warn]  ::              FAILED DOWNLOADS            ::
>> [warn]  :: ^ see resolution messages for details  ^ ::
>> [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
>> [warn]  ::
>> org.eclipse.jetty.orbit#javax.servlet;2.5.0.v201103041518!javax.servlet.orbit
>> [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
>> [error]
>> {file:/home/ubuntu/newspark/spark-0.8.0-incubating-bin-hadoop1/test2/}default-40fc15/*:update:
>> sbt.ResolveException: download failed:
>> org.eclipse.jetty.orbit#javax.servlet;2.5.0.v201103041518!javax.servlet.orbit
>> [error] Total time: 99 s, completed Nov 4, 2013 6:51:11 PM
>>
>>
>> PS:
>> I use the spark-0.8.0-incubating-bin-hadoop1 package, which is a
>> pre-build package. When I tried to recompile it, it shows the same error.
>>
>>
>> Any suggestion?
>>
>> Many thanks.
>>
>> Yongchao
>>
>
>

Mime
View raw message