

src/main/scala: This directory is where SBT expects to find Scala source code.src/main/java: This directory is where SBT expects to find Java source code.project/assembly.sbt: This file contains configuration for the sbt-assembly plugin, which allows you to create a Spark assembly JAR.Different projects can use different versions of the tool in the same development environment. project/build.properties: This file controls the version of SBT.lib/: This directory contains any unmanaged library dependencies that you have downloaded locally.build.sbt: This file contains important properties about the project.The downloaded Sparkour example is set up as a "single build" project and contains the following SBT follows a Maven-like convention for its directory structure.
DOWNLOAD SPARK JAVA JAR INSTALL
Utility to install it on an Amazon EC2 instance: SBT can be downloaded and manually installed from its website.
DOWNLOAD SPARK JAVA JAR CODE
DOWNLOAD SPARK JAVA JAR MANUAL
Refer to the SBT Reference Manual for more advanced usage. This recipe focuses very narrowly on aspects of SBT relevant to Spark development and intentionally glosses over the more complex configurations andĬommands. You are most likely to benefit from adopting SBT if you're writing a pure Scala Spark application or you have a mixed

SBT manages library dependencies internally with Apache Ivy, but you do need to interact directly with Ivy to use this feature. It adopts many of the conventions used by Apache Maven.Īlthough it has faced some criticism for its arcane syntax and the fact that it's "yet another build tool", SBT has become the de facto build SBT is a Scala-based build tool that works with both Java and Scala source code. You should consider using a minimum of SBT 0.13.6 and SBT continues to mature, sometimes in ways that break backwards compatibility.

