How to do it...

Here's how we go about adding the sbteclipse plugin:

  1. 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
  1. Alternatively, you can add the following to your project:
        $ cd <project-home>
$ echo addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.1.0" ) > plugin.sbt
  1. Start the SBT shell without any arguments:
        $ sbt
  1. Type eclipse command and it will make an Eclipse-ready project:
        $ eclipse
  1. 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset