spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Akhil Das <ak...@sigmoidanalytics.com>
Subject Re: how to use SharedSparkContext
Date Wed, 14 Oct 2015 10:47:50 GMT
Did a quick search and found the following, I haven't tested it myself.

Add the following to your build.sbt

libraryDependencies += "com.holdenkarau" % "spark-testing-base_2.10" %
"1.5.0_1.4.0_1.4.1_0.1.2"



Create a class extending com.holdenkarau.spark.testing.SharedSparkContext

And you should be able to use it.

Thanks
Best Regards

On Mon, Oct 12, 2015 at 2:18 PM, Fengdong Yu <fengdongy@everstring.com>
wrote:

> Hi,
> How to add dependency in build.sbt  if I want to use SharedSparkContext?
>
> I’ve added spark-core, but it doesn’t work.(cannot find SharedSparkContext)
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
> For additional commands, e-mail: user-help@spark.apache.org
>
>

Mime
View raw message