Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Hands-On Data Analysis with Scala

You're reading from  Hands-On Data Analysis with Scala

Product type Book
Published in May 2019
Publisher Packt
ISBN-13 9781789346114
Pages 298 pages
Edition 1st Edition
Languages
Author (1):
Rajesh Gupta Rajesh Gupta
Profile icon Rajesh Gupta

Table of Contents (14) Chapters

Preface 1. Section 1: Scala and Data Analysis Life Cycle
2. Scala Overview 3. Data Analysis Life Cycle 4. Data Ingestion 5. Data Exploration and Visualization 6. Applying Statistics and Hypothesis Testing 7. Section 2: Advanced Data Analysis and Machine Learning
8. Introduction to Spark for Distributed Data Analysis 9. Traditional Machine Learning for Data Analysis 10. Section 3: Real-Time Data Analysis and Scalability
11. Near Real-Time Data Analysis Using Streaming 12. Working with Data at Scale 13. Another Book You May Enjoy

Spark Streaming overview

Spark Streaming is an extension of the core Spark API that enables scalable and fault-tolerant, stream-oriented processing of data. Spark provides the ability to stream data from multiple sources, with a number of key sources being the following:

  • Apache Kafka
  • Amazon Kinesis and S3
  • TCP
  • HDFS

Spark offers two flavors of streaming:

  • Spark Structured Streaming that is built on top of the Spark SQL engine
  • Spark Discretized Stream (DStream), which uses a discretized stream—that is, a continuous stream of data

In this section, we will be exploring Spark DStreams and develop an understanding of how this could be leveraged to develop streaming solutions.

Let's start with a classic word count problem, where we are trying to count the frequency of each distinct word.

...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}