Getting Apache Spark

In this recipe, we'll take a look at how to bring Spark into our project (using SBT) and how Spark works internally.

How to do it...

Let's now throw some Spark dependencies into our build.sbt file so that we can start playing with them in subsequent recipes. For now, we'll just focus on three of them: Spark Core, Spark SQL, and Spark MLlib. We'll take a look at a host of other Spark dependencies as we proceed further in this book:

  1. Under a brand new folder (which will be your project root), create a new file called build.sbt.
  2. Next, let's add the Spark libraries to the project dependencies.
  3. Note ...

Get Scala Data Analysis Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.