Reputation: 1306
I wanted to contribute to spark.
I cloned the git repository locally. Please suggest how to setup spark first and then run a hello world over it from IDE itself.
Upvotes: 3
Views: 1410
Reputation: 5712
I assume you already have the latest release of Scala IDE (4.0 at this point) from scala-ide.org.
sbt eclipse
, I guess you figured that out already.Import Existing projects
)
If you want to develop on Scala 2.10, you need to configure a Scala installation for the exact Scala version that’s used to compile Spark. At the time of this writing that is Scala 2.10.4.
Eclipse Preferences -> Scala -> Installations
by pointing to the lib/
directory of your Scala 2.10.4 distribution. Scala -> Set Scala Installation
and point to the 2.10.4 installation. This should clear all errors about invalid cross-compiled libraries.You can easily find examples on getting started with Spark, for example here. You can run a Spark app using right-click -> Run As Scala Application
.
Upvotes: 1