← 📊 Data Science

⚡ Spark Cluster

Cache RDD in memory
LAZY — no action called
Stage: idle
Tasks done: 0 / 0
Shuffle bytes: 0
FPS:
Drag — rotate · Scroll — zoom

⚡ Inside Apache Spark's Distributed Execution Model

A driver coordinates a ring of executors as data partitions flow through a map stage, a network shuffle and a reduce stage — nothing happens until you fire the action that triggers Spark's lazily built DAG.

🔬 What It Demonstrates

Narrow transformations run in place on each executor with zero network cost; wide transformations force a shuffle, redistributing partitions by hash key before a reduce stage aggregates and the driver collects the result.

🎮 How to Use

Set the executor and partition counts, then press Run job to trigger the lazy DAG. Toggle in-memory caching to see mapped partitions stay resident on their executor for the next run instead of recomputing.

💡 Did You Know?

The shuffle is Spark's most expensive operation because it moves data across the network between every executor pair — minimizing shuffles is one of the biggest levers for speeding up a real Spark job.