spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andy petrella <andy.petre...@gmail.com>
Subject Re: Need suggestions
Date Wed, 02 Apr 2014 21:48:13 GMT
Sorry I was not clear perhaps, anyway, could you try with the path in the
*List* to be the absolute one; e.g.
List("/home/yh/src/pj/spark-stuffs/target/scala-2.10/simple-project_2.10-1.0.jar")

In order to provide a relative path, you need first to figure out your CWD,
so you can do (to be really sure) do:
//before the new SparkContecxt)
println(new java.io.File(".").toUri.toString) // didn't try so adapt to
make scalax happy ^^




On Wed, Apr 2, 2014 at 11:30 PM, yh18190 <yh18190@gmail.com> wrote:

> Hi,
> Here is the sparkcontext feature.Do I need to any more extra jars to slaves
> separetely or this is enough?
> But i am able to see this created jar in my target directory..
>
>  val sc = new SparkContext("spark://spark-master-001:7077", "Simple App",
> utilclass.spark_home,
>               List("target/scala-2.10/simple-project_2.10-1.0.jar"))
>
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/Need-suggestions-tp3650p3655.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>

Mime
View raw message