concept sbt in category graphx

appears as: sbt
Spark GraphX in Action

This is an excerpt from Manning's book Spark GraphX in Action.

3.2.6. Hello World with Spark and sbt

sbt, or Simple Build Tool, is the “make” or “Maven” native to Scala. If you don’t already have it installed, download and install it from www.scala-sbt.org (if you’re using the Cloudera QuickStart VM as suggested in appendix A, then it’s already installed). Like most modern build systems, sbt expects a particular directory structure. As in listings 3.1 and 3.2, put helloworld.sbt into ~/helloworld and helloworld.scala into ~/helloworld /src/main/scala. Then, while in the helloworld directory, enter this command:

sbt run

You don’t need to install the Scala compiler yourself; sbt will automatically download and install it for you. sbt has Apache Ivy built in, which does package management similar to what Maven has built-in. Ivy was originally from the Ant project. In helloworld .sbt in the following listing, the libraryDependencies line instructs sbt to ask Ivy to download and cache the Spark 1.6 Jar files (and dependencies) into ~/.ivy2/cache.