Migrating Airflow-based Spark jobs to Kubernetes - the native way
summary
At Nielsen Identity Engine, Spark ETLs that used AWS EMR move to Kubernetes using the GCP spark-on-k8s operator and a native Airflow integration, cutting monthly costs by about 30% cost reduction. The migration keeps DAGs mostly unchanged by templating SparkApplication CRDs, uses Airflow’s new KubernetesHook/operator/sensor to submit and monitor jobs, leverages cluster autoscaling and spot instances, and reports real production resilience and measurable savings across thousands of daily Spark nodes.
AI-written summary · about
chapters (12)
- 0:00Introduction and overview
- 1:28Data platform architecture
- 3:36Airflow and Spark basics
- 5:46EMR and cost management
- 8:10Airflow and EMR integration
- 9:30Kubernetes introduction
- 13:22Spark on Kubernetes
- 17:22Airflow and Kubernetes integration
- 21:14Migration results and benefits
- 23:05Airflow best practices
- 25:32Conclusion and resources
- 26:49Q&A session
