Book Image

Big Data Processing with Apache Spark

By : John Bura
Book Image

Big Data Processing with Apache Spark

By: John Bura

Overview of this book

Processing big data in real time is challenging due to scalability, information consistency, and fault-tolerance. Big Data Processing with Apache Spark teaches you how to use Spark to make your overall analytical workflow faster and more efficient. You'll explore all core concepts and tools within the Spark ecosystem, such as Spark Streaming, the Spark Streaming API, machine learning extension, and structured streaming. You'll begin by learning data processing fundamentals using Resilient Distributed Datasets (RDDs), SQL, Datasets, and Dataframes APIs. After grasping these fundamentals, you'll move on to using Spark Streaming APIs to consume data in real time from TCP sockets, and integrate Amazon Web Services (AWS) for stream consumption. By the end of this course, you’ll not only have understood how to use machine learning extensions and structured streams but you’ll also be able to apply Spark in your own upcoming big data projects. The code bundle for this course is available at https://github.com/TrainingByPackt/Big-Data-Processing-with-Apache-Spark
Table of Contents (4 chapters)
Chapter 1
Introduction to Spark Distributed Processing
Content Locked
Section 7
Self-Contained Python Spark Programs
The interactive Python interface is a great tool for simple computations. Its functionality is limited even as the computing operations grow in complexity. In this section, let us learn to write Python programs that can interact with a Spark cluster outside of the interactive console. Further to this section, we will also learn about functional programming.