Hands-on Guide to Apache Spark 3: Build Scalable Computing Engines for Batch and Stream Data Processing

  • 3h 46m
  • Alfonso Antolínez García
  • Apress
  • 2023

This book explains how to scale Apache Spark 3 to handle massive amounts of data, either via batch or streaming processing. It covers how to use Spark’s structured APIs to perform complex data transformations and analyses you can use to implement end-to-end analytics workflows.

This book covers Spark 3's new features, theoretical foundations, and application architecture. The first section introduces the Apache Spark ecosystem as a unified engine for large scale data analytics, and shows you how to run and fine-tune your first application in Spark. The second section centers on batch processing suited to end-of-cycle processing, and data ingestion through files and databases. It explains Spark DataFrame API as well as structured and unstructured data with Apache Spark. The last section deals with scalable, high-throughput, fault-tolerant streaming processing workloads to process real-time data. Here you'll learn about Apache Spark Streaming’s execution model, the architecture of Spark Streaming, monitoring, reporting, and recovering Spark streaming. A full chapter is devoted to future directions for Spark Streaming. With real-world use cases, code snippets, and notebooks hosted on GitHub, this book will give you an understanding of large-scale data analysis concepts--and help you put them to use.

Upon completing this book, you will have the knowledge and skills to seamlessly implement large-scale batch and streaming workloads to analyze real-time data streams with Apache Spark.

What You Will Learn

  • Master the concepts of Spark clusters and batch data processing
  • Understand data ingestion, transformation, and data storage
  • Gain insight into essential stream processing concepts and different streaming architectures
  • Implement streaming jobs and applications with Spark Streaming

Who This Book Is For

Data engineers, data analysts, machine learning engineers, Python and R programmers

About the Author

Alfonso Antolínez García is a senior IT manager with a long professional career serving in several multinational companies such as Bertelsmann SE, Lafarge, and TUI AG. He has been working in the media industry, the building materials industry, and the leisure industry. Alfonso also works as a university professor, teaching artificial intelligence, machine learning, and data science. In his spare time, he writes research papers on artificial intelligence, mathematics, physics, and the applications of information theory to other sciences.

In this Book

  • Introduction to Apache Spark for Large-Scale Data Analytics
  • Getting Started with Apache Spark
  • Spark Low-Level API
  • The Spark High-Level APIs
  • Spark Dataset API and Adaptive Query Execution
  • Introduction to Apache Spark Streaming
  • Spark Structured Streaming
  • Streaming Sources and Sinks
  • Event-Time Window Operations and Watermarking
  • Future Directions for Spark Streaming
  • Bibliography