Run PySpark on Your Own CSV, Parquet, JSON or Avro File

Upload a CSV, JSON, Parquet, Avro or ORC file to the lab, get the PySpark read code for it in one click and run it. Files stay in your Docker volume.

Quick answer: Run PySpark on your own computer and learn to read the Spark UI.

Related: Spark Lab · Spark UI Playground: See Stages, Tasks and Shuffle · Learn PySpark Free: Hands-On Spark Lab With the Spark UI · Delta Lake Playground: Learn Delta Tables Locally · Free Data Engineering Playgrounds: PySpark, Delta Lake, dbt and Airflow

How to use the Run PySpark on Your Own CSV, Parquet, JSON or Avro File

Run PySpark on your own computer and learn to read the Spark UI.

Spark Lab is a PySpark and Delta Lake playground that runs on your own computer. You learn Apache Spark without installing Java, Python or Spark yourself. You start a small lab on your own computer with one Docker command, then type PySpark code on this page. The code runs in Spark on your machine, and the real Spark UI shows the jobs, stages, shuffles, joins and query plans it made. Lessons on sample data walk you through what to look for, and the Delta lessons show every commit of the Delta transaction log as you update, delete, MERGE and time travel.

  1. Start the lab with the Docker commands
  2. Paste the token and connect
  3. Run a lesson and open the Spark UI

Tips

Example

Input: sales.parquet

Output: spark.read.parquet(...) with the schema and the first rows

Browse by topic

Who uses Data Utility

Frequently asked questions · Data format benchmark

Frequently asked questions

Which file formats can I upload?

CSV, TSV, JSON, JSON lines, Parquet, Avro and ORC, up to 2 GB per file in the Airflow Lab. Avro support is built into the image.

Where is my uploaded data stored?

In a Docker volume on your computer. Nothing is stored in the browser or sent to a server.

What do I need to install?

Only Docker Desktop. The lab brings its own Java, Python, Spark and Delta Lake.

Can I use it in VS Code?

Yes. Click VS Code workspace on the setup page. It downloads a Dev Container workspace with every lesson as a notebook; open it in VS Code and click Reopen in Container.

Can I learn Delta Lake without Databricks?

Yes. The lab includes open-source Delta Lake 3.2. Write Delta tables, update, delete, MERGE and time travel, and read the _delta_log, all on your laptop.

Is my code sent to a server?

No. This page sends your code to the lab on your own computer (localhost). It does not go to Data Utility.

Why does the lab ask for a token?

So that only this page, with the token from your terminal, can run code in your lab. Other websites cannot use it.

Which browsers work?

Chrome and Edge work best. Some browsers block a website from talking to your own computer; if connecting fails, try Chrome.

Related pages

Topic guides

Guides