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.png
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.png
Figure 2. Stages Page With One Stage Completed
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.png
Figure 3. Fair Scheduler Pools Table

Internally, the page is represented by class.

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

Handling Kill Stage Request (from web UI) — handleKillRequest Method


killEnabled flag


results matching ""

    No results matching ""