SparkLab/ overview 0/39 lessons
An interactive Apache Spark & AWS Glue course

Learn Apache Spark by replaying the jobs.

Watch a job travel from spark-submit to the driver, through stages, shuffles and executor memory — on a live ops dashboard with metrics, a topology and a driver log. Then go deep on PySpark, Spark SQL, tuning, and how PySpark runs on AWS Glue.

live · cluster-anatomyhealthy
T+00sThree roles in every Spark application
spark-submitdriverplans + schedulescluster managerallocates resourcesexecutor 1executor 2runs tasksexecutor 3S3 / HDFS
39lessons · 6 modules
341replayable steps
9hands-on labs
48quiz questions · 149 terms

How it works

Replay how Spark runs

Each lesson is a job run you step through: the driver plans, executors light up, shuffles move data and the driver log records every message. Use ← → or press play.

Read and write real code

Every concept comes with PySpark, Spark SQL or Glue script snippets — and the SQL playground runs your queries in the browser and shows the DataFrame twin.

Drill it, then test it

Labs for stages, skew, joins, memory, Catalyst and Glue jobs and crawlers; a quiz per module and a searchable glossary. Progress stays in your browser.

From PySpark to a Glue job

the shape of every Glue PySpark jobPySpark
glueContext = GlueContext(SparkContext.getOrCreate())
job = Job(glueContext); job.init(args["JOB_NAME"], args)

orders = glueContext.create_dynamic_frame.from_catalog(
    database="raw", table_name="orders_json",
    transformation_ctx="orders")          # bookmark state

df = orders.toDF().where(F.col("status") != "test")
(df.groupBy("country").agg(F.sum("amount").alias("revenue"))
   .write.mode("overwrite").parquet("s3://lake/curated/revenue/"))
job.commit()

AWS Glue runs your PySpark on a serverless Spark cluster. Modules 05 and 06 follow the whole flow: crawlers fill the Data Catalog, a trigger starts the job, Glue provisions workers, GlueContext reads DynamicFrames, bookmarks remember what was processed and the job writes partitioned Parquet back to S3 for Athena.

The course, module by module

MODULE 01

Spark Architecture

Driver, executors and the cluster manager; how a job becomes stages and tasks; partitions, the shuffle and executor memory.

MODULE 02

PySpark in Depth

How Python drives the JVM, the DataFrame API end to end, UDFs vs pandas UDFs, nested data and Structured Streaming.

MODULE 03

Spark SQL with PySpark

SQL basics you run from PySpark — SELECT, GROUP BY, joins, windows and CTEs — and how Catalyst turns both into one plan.

MODULE 04

Performance & Optimisation

Read plans and the Spark UI, tune partitions, pick join strategies, beat skew, use AQE, lay out data and size executors.

MODULE 05

AWS Glue Architecture

Serverless Spark on AWS: the Data Catalog, crawlers, what happens when a job runs, orchestration and security.

MODULE 06

PySpark on AWS Glue

Write real Glue jobs: script anatomy, DynamicFrames, sources and sinks, job bookmarks, performance, streaming and the dev workflow.

Labs

Explanations are our own summaries of the official Apache Spark and AWS Glue documentation; every lesson links to its source. Defaults and versions change — check the docs for your Spark and Glue version.