Showing posts with label Sbt. Show all posts
Showing posts with label Sbt. Show all posts

Monday, March 13, 2017

SBT Project Creation

  1. Install SBT Window Plugin http://www.scala-sbt.org/download.html
  2. After installation set the Environmental path
    1. SBT_HOME
    2. Path
  3. Once Environmental setup is done create a directory with the project name say DEMOSBT
  4. Inside the DEMOSBT create a file name called build.sbt and folder project
  5. Inside the build.sbt write
name := "ProjectName"
version := "1.0"
scalaVersion := "2.10."4
Inside this file further we will be adding dependencies and assembly plugin details to build the UBER JAR.
  1. Inside the DEMOSBT\project folder create a file named plugins.sbt
  2. In plugins.sbt add below line to add Eclipse dependency
 addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.5.0")
Further similar to that we will add assembly plugin dependency as well for UBER JAR creation
  1. From the command window, move to DEMOSBT path and run sbt eclipse command that adds all the required dependency
  2. Import the project in Eclipse
  3. Down the line if you want to add any dependency then you have to modify build.sbt file. After that, again you have to run the sbt eclipse Refresh the eclipse project you will get the referenced libraries in the bundle.

Apache Spark – Catalyst Optimizer

Optimizer is the one that automatically finds out the most efficient plan to execute data operations specified in the user’s program. In...