Here's how we go about adding the sbteclipse plugin:
- Add this to the global plugin file:
$ mkdir /home/hduser/.sbt/0.13/plugins
$ echo addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.1.0" ) > /home/hduser/.sbt/0.13/plugins/plugin.sbt
- Alternatively, you can add the following to your project:
$ cd <project-home>
$ echo addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.1.0" ) > plugin.sbt
- Start the SBT shell without any arguments:
$ sbt
- Type eclipse command and it will make an Eclipse-ready project:
$ eclipse
- Navigate to File | Import | Import existing project into the workspace to load the project into Eclipse:
Now you can develop the Spark application in Scala using Eclipse and SBT.