Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 2.09 KB

spark-webui-stages.adoc

File metadata and controls

34 lines (19 loc) · 2.09 KB

Stages Tab — Stages for All Jobs

Stages tab in web UI shows the current state of all stages of all jobs in a Spark application (i.e. a SparkContext) with two optional pages for the tasks and statistics for a stage (when a stage is selected) and pool details (when the application works in FAIR scheduling mode).

The title of the tab is Stages for All Jobs.

You can access the Stages tab under /stages URL, i.e. http://localhost:4040/stages.

With no jobs submitted yet (and hence no stages to display), the page shows nothing but the title.

spark webui stages empty
Figure 1. Stages Page Empty

The Stages page shows the stages in a Spark application per state in their respective sections — Active Stages, Pending Stages, Completed Stages, and Failed Stages.

spark webui stages completed
Figure 2. Stages Page With One Stage Completed
Note
The state sections are only displayed when there are stages in a given state. Refer to Stages for All Jobs.

In FAIR scheduling mode you have access to the table showing the scheduler pools.

spark webui stages fairschedulerpools
Figure 3. Fair Scheduler Pools Table

Internally, the page is represented by org.apache.spark.ui.jobs.StagesTab class.

The page uses the parent’s SparkUI to access required services, i.e. SparkContext, SparkConf, JobProgressListener, RDDOperationGraphListener, and whether kill is enabled or not.

Caution
FIXME What is RDDOperationGraphListener?

killEnabled flag

Caution
FIXME