Book description
Design, implement, and deliver successful streaming applications, machine learning pipelines and graph applications using Spark SQL API
About This Book
- Learn about the design and implementation of streaming applications, machine learning pipelines, deep learning, and large-scale graph processing applications using Spark SQL APIs and Scala.
- Learn data exploration, data munging, and how to process structured and semi-structured data using real-world datasets and gain hands-on exposure to the issues and challenges of working with noisy and "dirty" real-world data.
- Understand design considerations for scalability and performance in web-scale Spark application architectures.
Who This Book Is For
If you are a developer, engineer, or an architect and want to learn how to use Apache Spark in a web-scale project, then this is the book for you. It is assumed that you have prior knowledge of SQL querying. A basic programming knowledge with Scala, Java, R, or Python is all you need to get started with this book.
What You Will Learn
- Familiarize yourself with Spark SQL programming, including working with DataFrame/Dataset API and SQL
- Perform a series of hands-on exercises with different types of data sources, including CSV, JSON, Avro, MySQL, and MongoDB
- Perform data quality checks, data visualization, and basic statistical analysis tasks
- Perform data munging tasks on publically available datasets
- Learn how to use Spark SQL and Apache Kafka to build streaming applications
- Learn key performance-tuning tips and tricks in Spark SQL applications
- Learn key architectural components and patterns in large-scale Spark SQL applications
In Detail
In the past year, Apache Spark has been increasingly adopted for the development of distributed applications. Spark SQL APIs provide an optimized interface that helps developers build such applications quickly and easily. However, designing web-scale production applications using Spark SQL APIs can be a complex task. Hence, understanding the design and implementation best practices before you start your project will help you avoid these problems.
This book gives an insight into the engineering practices used to design and build real-world, Spark-based applications. The book's hands-on examples will give you the required confidence to work on any future projects you encounter in Spark SQL.
It starts by familiarizing you with data exploration and data munging tasks using Spark SQL and Scala. Extensive code examples will help you understand the methods used to implement typical use-cases for various types of applications. You will get a walkthrough of the key concepts and terms that are common to streaming, machine learning, and graph applications. You will also learn key performance-tuning details including Cost Based Optimization (Spark 2.2) in Spark SQL applications. Finally, you will move on to learning how such systems are architected and deployed for a successful delivery of your project.
Style and approach
This book is a hands-on guide to designing, building, and deploying Spark SQL-centric production applications at scale.
Table of contents
- Preface
- Getting Started with Spark SQL
- Using Spark SQL for Processing Structured and Semistructured Data
- Using Spark SQL for Data Exploration
- Using Spark SQL for Data Munging
-
Using Spark SQL in Streaming Applications
- Introducing streaming data applications
- Building Spark streaming applications
- Using Kafka with Spark Structured Streaming
- Writing a receiver for a custom data source
- Summary
-
Using Spark SQL in Machine Learning Applications
- Introducing machine learning applications
- Introducing feature engineering
- Implementing a Spark ML classification model
- Introducing Spark ML tools and utilities
- Implementing a Spark ML clustering model
- Summary
- Using Spark SQL in Graph Applications
- Using Spark SQL with SparkR
- Developing Applications with Spark SQL
- Using Spark SQL in Deep Learning Applications
-
Tuning Spark SQL Components for Performance
- Introducing performance tuning in Spark SQL
- Understanding DataFrame/Dataset APIs
- Understanding Catalyst optimizations
- Visualizing Spark application execution
- Cost-based optimizer in Apache Spark 2.2
- Understanding multi-way JOIN ordering optimization
- Understanding performance improvements using whole-stage code generation
- Summary
-
Spark SQL in Large-Scale Application Architectures
- Understanding Spark-based application architectures
- Understanding the Lambda architecture
- Understanding the Kappa Architecture
- Design considerations for building scalable stream processing applications
- Building robust ETL pipelines using Spark SQL
- Implementing a scalable monitoring solution
- Deploying Spark machine learning pipelines
- Using cluster managers
- Summary
Product information
- Title: Learning Spark SQL
- Author(s):
- Release date: September 2017
- Publisher(s): Packt Publishing
- ISBN: 9781785888359
You might also like
book
Learning SQL, 3rd Edition
As data floods into your company, you need to put it to work right away—and SQL …
book
Beginning Apache Spark 3: With DataFrame, Spark SQL, Structured Streaming, and Spark Machine Learning Library
Take a journey toward discovering, learning, and using Apache Spark 3.0. In this book, you will …
book
Learning PySpark
Build data-intensive applications locally and deploy at scale using the combined powers of Python and Spark …
book
Spark: The Definitive Guide
Learn how to use, deploy, and maintain Apache Spark with this comprehensive guide, written by the …