← Apache Spark learning path
Apache Spark · Module 10 of 10

Spark in production

Run, monitor and tune Spark jobs reliably.

📖 Key ideas

  1. Submit jobs with spark-submit or run notebooks on Databricks.
  2. Tune executor memory, cores and shuffle partitions.
  3. Monitor with Spark UI and logs.
  4. Schedule with Airflow or Databricks Workflows.
  5. Test transformations with small sample data.
💡 Real-life example: Running Spark in production is running a train service: schedules, monitoring and maintenance.
spark-submitCommand to launch Spark apps
spark.sql.shuffle.partitionsNumber of shuffle partitions
AirflowWorkflow scheduler
Spark UIWeb UI for jobs and stages