Κοινή χρήση μέσω


Diagnose cost and performance issues using the Spark UI

This guide walks you through how to use the Spark UI to diagnose cost and performance issues. It’s a step-by-step guide, and it’s a practical how-to. Rather than just providing you an explanation of what each page in the Spark UI does, it tells you what to look for and what it means. If you aren’t familiar with the concepts of driver, workers, executors, stages, and tasks, you might want to review the Spark architecture.

If you are looking for a comprehensive list of various optimization tools, use the Databricks Optimization guide. Sections of the optimization guide are referenced in this Spark UI guide.

Using this guide

To navigate through the guide, use the links embedded in each page to be taken to the next step. The guide contains the following steps in order:

  1. Use the Jobs Timeline to identify major issues
  2. Look at longest stage
  3. Look for skew or spill
  4. Determine if longest stage is I/O bound
  5. Look for other causes of slow stage runtime

Let’s get started!

How to open the Spark UI

  1. Navigate to your cluster’s page:

    Navigate to Compute

  2. Click Spark UI:

    Navigate to SparkUI

Next step

Now that you’ve opened the Spark UI, next review the event timeline to find out more about your pipeline or query. See Jobs timeline.