Driver Node DAG / Task Scheduler SparkContext Cluster Manager Resource Allocator YARN / Kubernetes Executor 1 Executor 2