Book description
Build data-intensive applications locally and deploy at scale using the combined powers of Python and Spark 2.0
About This Book
- Learn why and how you can efficiently use Python to process data and build machine learning models in Apache Spark 2.0
- Develop and deploy efficient, scalable real-time Spark solutions
- Take your understanding of using Spark with Python to the next level with this jump start guide
Who This Book Is For
If you are a Python developer who wants to learn about the Apache Spark 2.0 ecosystem, this book is for you. A firm understanding of Python is expected to get the best out of the book. Familiarity with Spark would be useful, but is not mandatory.
What You Will Learn
- Learn about Apache Spark and the Spark 2.0 architecture
- Build and interact with Spark DataFrames using Spark SQL
- Learn how to solve graph and deep learning problems using GraphFrames and TensorFrames respectively
- Read, transform, and understand data and use it to train machine learning models
- Build machine learning models with MLlib and ML
- Learn how to submit your applications programmatically using spark-submit
- Deploy locally built applications to a cluster
In Detail
Apache Spark is an open source framework for efficient cluster computing with a strong interface for data parallelism and fault tolerance. This book will show you how to leverage the power of Python and put it to use in the Spark ecosystem. You will start by getting a firm understanding of the Spark 2.0 architecture and how to set up a Python environment for Spark.
You will get familiar with the modules available in PySpark. You will learn how to abstract data with RDDs and DataFrames and understand the streaming capabilities of PySpark. Also, you will get a thorough overview of machine learning capabilities of PySpark using ML and MLlib, graph processing using GraphFrames, and polyglot persistence using Blaze. Finally, you will learn how to deploy your applications to the cloud using the spark-submit command.
By the end of this book, you will have established a firm understanding of the Spark Python API and how it can be used to build data-intensive applications.
Style and approach
This book takes a very comprehensive, step-by-step approach so you understand how the Spark ecosystem can be used with Python to develop efficient, scalable solutions. Every chapter is standalone and written in a very easy-to-understand manner, with a focus on both the hows and the whys of each concept.
Table of contents
-
Learning PySpark
- Table of Contents
- Learning PySpark
- Credits
- Foreword
- About the Authors
- About the Reviewer
- www.PacktPub.com
- Customer Feedback
- Preface
- 1. Understanding Spark
- 2. Resilient Distributed Datasets
- 3. DataFrames
- 4. Prepare Data for Modeling
- 5. Introducing MLlib
- 6. Introducing the ML Package
-
7. GraphFrames
- Introducing GraphFrames
- Installing GraphFrames
- Preparing your flights dataset
- Building the graph
- Executing simple queries
- Understanding vertex degrees
- Determining the top transfer airports
- Understanding motifs
- Determining airport ranking using PageRank
- Determining the most popular non-stop flights
- Using Breadth-First Search
- Visualizing flights using D3
- Summary
- 8. TensorFrames
- 9. Polyglot Persistence with Blaze
- 10. Structured Streaming
- 11. Packaging Spark Applications
- Index
Product information
- Title: Learning PySpark
- Author(s):
- Release date: February 2017
- Publisher(s): Packt Publishing
- ISBN: 9781786463708
You might also like
book
Learning Spark
Data in all domains is getting bigger. How can you work with it efficiently? Recently updated …
video
Introduction to PySpark
In this Introduction to PySpark training course, expert author Alex Robbins will teach you everything you …
book
Learning Spark, 2nd Edition
Data is bigger, arrives faster, and comes in a variety of formatsâ??and it all needs to …
book
Learning Go
Go is rapidly becoming the preferred language for building web services. While there are plenty of …