Presented By O'Reilly and Cloudera
December 5-6, 2016: Training
December 6–8, 2016: Tutorials & Conference

Just enough Scala for Spark

Dean Wampler (Lightbend)
9:00am–12:30pm Tuesday, December 6, 2016
Spark & beyond
Location: 321/322 Level: Intermediate
Average rating: ****.
(4.00, 1 rating)

Prerequisite Knowledge

  • A basic familiarity with Spark and Java

Materials or downloads needed in advance

What you'll learn

  • Discover why Scala is an ideal programming language for data engineers using Spark
  • Learn the core features of Scala necessary to write Spark code
  • Pick up tips and tricks for effective Scala


Apache Spark is written in Scala. Although Spark provides a Java API, many data engineers are adopting Scala since it’s the “native” language for Spark—and because Spark code written in Scala is much more concise than comparable Java code. Most data scientists, however, continue to use Python and R.

If you want to learn Scala for Spark, this is the tutorial for you. Dean Wampler offers an overview of the core features of Scala you need to use Spark effectively, using hands-on exercises with the Spark APIs. You’ll learn the most important Scala syntax, idioms, and APIs for Spark development.

Topics include:

  • Classes, methods, and functions
  • Immutable versus mutable values
  • Type inference
  • Pattern matching
  • Scala collections and the common operations on them (the basis of the RDD API)
  • Other Scala types like case classes, tuples, and options
  • Domain-specific languages in Scala
  • Effective use of the Spark shell (Scala interpreter)
  • Common mistakes (e.g., serialization errors) and how to avoid them
Photo of Dean Wampler

Dean Wampler


Dean Wampler is the vice president of fast data engineering at Lightbend, where he leads the Lightbend Fast Data Platform project, a distribution of scalable, distributed stream processing tools including Spark, Flink, Kafka, and Akka, with machine learning and management tools. Dean is the author of Programming Scala and Functional Programming for Java Developers and the coauthor of Programming Hive, all from O’Reilly. He’s a contributor to several open source projects. A frequent Strata speaker, he’s also the co-organizer of several conferences around the world and several user groups in Chicago.