Processing Streaming Data with Apache Spark on Databricks
This course will teach you how to use Spark abstractions for streaming data and perform transformations on streaming data using the Spark structured streaming APIs on Azure Databricks.
What you'll learn
Structured streaming in Apache Spark treats real-time data as a table that is being constantly appended. This leads to a stream processing model that uses the same APIs as a batch processing model - it is up to Spark to incrementalize our batch operations to work on the stream. The burden of stream processing shifts from the user to the system, making it very easy and intuitive to process streaming data with Spark.
In this course, Processing Streaming Data with Apache Spark on Databricks, you’ll learn to stream and process data using abstractions provided by Spark structured streaming. First, you’ll understand the difference between batch processing and stream processing and see the different models that can be used to process streaming data. You will also explore the structure and configurations of the Spark structured streaming APIs.
Next, you will learn how to read from a streaming source using Auto Loader on Azure Databricks. Auto Loader automates the process of reading streaming data from a file system, and takes care of the file management and tracking of processed files making it very easy to ingest data from external cloud storage sources. You will then perform transformations and aggregations on streaming data and write data out to storage using the append, complete, and update models.
Finally, you will learn how to use SQL-like abstractions on input streams. You will connect to an external cloud storage source, an Amazon S3 bucket, and read in your stream using Auto Loader. You will then run SQL queries to process your data. Along the way, you will make your stream processing resilient to failures using checkpointing and you will also implement your stream processing operation as a job on a Databricks Job Cluster.
When you’re finished with this course, you’ll have the skills and knowledge of streaming data in Spark needed to process and monitor streams and identify use-cases for transformations on streaming data.
Table of contents
- Version Check 0m
- Prerequisites and Course Outline 2m
- Batch Processing vs. Stream Processing 6m
- Micro-batch and Continuous Processing 5m
- Stream Processing in Apache Spark 3m
- Continuous Applications in Spark 4m
- Demo: Reading Batch and Streaming Data 5m
- Demo: Running a Simple Streaming Query 3m
- Demo: Processing and Visualizing Streams 5m
- Triggers 4m
- Demo: Configuring Triggers 4m
- Module Summary 1m
- Demo: Executing SQL Queries to Process Streams 7m
- Demo: Creating an AWS User and S3 Bucket 4m
- Demo: Mounting an S3 Bucket to DBFS 4m
- Demo: Auto Loader to Read from an S3 Bucket Source 2m
- Demo: Applying UDFs on Streaming Data 2m
- Checkpointing 2m
- Demo: Checkpointing 7m
- Demo: Running a Streaming Job on a Cluster 5m
- Demo: Viewing Job Results 2m
- Summary and Further Study 1m