AllJobsPage — Showing All Jobs in Web UI

AllJobsPage is a WebUIPage with an empty prefix.

AllJobsPage is created exclusively when JobsTab is created.

AllJobsPage renders a summary, an event timeline, and active, completed, and failed jobs of a Spark application.

Jobs (in any state) are displayed when their number is greater than 0.

AllJobsPage displays the Summary section with the current Spark user, total uptime, scheduling mode, and the number of jobs per status.

AllJobsPage uses JobProgressListener for Scheduling Mode.
spark webui jobs summary section
Figure 1. Summary Section in Jobs Tab

Under the summary section is the Event Timeline section.

spark webui jobs event timeline
Figure 2. Event Timeline in Jobs Tab
AllJobsPage uses ExecutorsListener to build the event timeline.

Active Jobs, Completed Jobs, and Failed Jobs sections follow.

spark webui jobs status section
Figure 3. Job Status Section in Jobs Tab

Jobs are clickable, i.e. you can click on a job to see information about the stages of tasks inside it.

When you hover over a job in Event Timeline not only you see the job legend but also the job is highlighted in the Summary section.

spark webui jobs timeline popup
Figure 4. Hovering Over Job in Event Timeline Highlights The Job in Status Section

The Event Timeline section shows not only jobs but also executors.

spark webui jobs timeline executors
Figure 5. Executors in Event Timeline
Use Programmable Dynamic Allocation (using SparkContext) to manage executors for demo purposes.

Creating AllJobsPage Instance

AllJobsPage takes the following when created: