Spark Streaming - The simple way

19
Spark Streaming What is Spark Streaming in pictures Yogesh Kumar Author - 99 Apache Spark Interview Questions for Professionals Yogesh Kumar

Transcript of Spark Streaming - The simple way

Page 1: Spark Streaming - The simple way

Spark Streaming

What is Spark Streaming in picturesYogesh Kumar

Author - 99 Apache Spark Interview Questions for Professionals

Yogesh Kumar

Page 2: Spark Streaming - The simple way

99 Apache Spark Interview Questions for Professionals

Spark Application step 0

Page 3: Spark Streaming - The simple way

99 Apache Spark Interview Questions for Professionals

Spark Application step 1

Page 4: Spark Streaming - The simple way

99 Apache Spark Interview Questions for Professionals

Spark Application step 2

Page 5: Spark Streaming - The simple way

99 Apache Spark Interview Questions for Professionals

Streaming Step 1

Page 6: Spark Streaming - The simple way

99 Apache Spark Interview Questions for Professionals

Streaming Step 2

Page 7: Spark Streaming - The simple way

99 Apache Spark Interview Questions for Professionals

Streaming Step 3

Page 8: Spark Streaming - The simple way

99 Apache Spark Interview Questions for Professionals

Streaming Step 4

Page 9: Spark Streaming - The simple way

99 Apache Spark Interview Questions for Professionals

Streaming Step 5

Page 10: Spark Streaming - The simple way

99 Apache Spark Interview Questions for Professionals

What if an executor fails?

Page 11: Spark Streaming - The simple way

99 Apache Spark Interview Questions for Professionals

Automatic Recovery

Page 12: Spark Streaming - The simple way

99 Apache Spark Interview Questions for Professionals

What if the driver fails?

Page 13: Spark Streaming - The simple way

99 Apache Spark Interview Questions for Professionals

Recovering Driver w/ DStream Checkpointing

Page 14: Spark Streaming - The simple way

99 Apache Spark Interview Questions for Professionals

Recovering Driver w/ DStream Checkpointing

Page 15: Spark Streaming - The simple way

99 Apache Spark Interview Questions for Professionals

Recovering Driver w/ DStream Checkpointing

Page 16: Spark Streaming - The simple way

99 Apache Spark Interview Questions for Professionals

Received blocks lost on Restart!

Page 17: Spark Streaming - The simple way

99 Apache Spark Interview Questions for Professionals

Recovering data with Write Ahead Logs

Page 18: Spark Streaming - The simple way

99 Apache Spark Interview Questions for Professionals

Recovering data with Write Ahead Logs

Page 19: Spark Streaming - The simple way

99 Apache Spark Interview Questions for Professionals

Zero data loss = every stage processes each

event at least once despite any failure