Understanding Apache Spark’s Execution Model Using SparkListeners

Understanding Apache Spark’s Execution Model Using SparkListeners

When you execute an action on a RDD, Apache Spark runs a job that in turn triggers tasks using DAGScheduler and TaskScheduler, respectively. They are all low-level details that may be often useful to understand when a simple transformation is no longer simple performance-wise and takes ages to complete.