This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 00ee0e397836 [SPARK-45641][UI] Display the application start time on
AllJobsPage
00ee0e397836 is described below
commit 00ee0e397836e440b35909effef413c4db522b56
Author: Kent Yao <[email protected]>
AuthorDate: Tue Oct 24 01:15:01 2023 -0700
[SPARK-45641][UI] Display the application start time on AllJobsPage
### What changes were proposed in this pull request?
This PR adds content for the application start time on AllJobsPage.
### Why are the changes needed?
The application start time currently remains in a long value form, which is
not convenient for users to read on the environment tab. It's also useful on
the AllJobsPage, such as identifying a long pause before job 0 gets scheduled.
### Does this PR introduce _any_ user-facing change?
yes, UI updates
### How was this patch tested?
locally tested

### Was this patch authored or co-authored using generative AI tooling?
no
Closes #43495 from yaooqinn/SPARK-45641.
Authored-by: Kent Yao <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
.../org/apache/spark/ui/jobs/AllJobsPage.scala | 7 ++++++-
docs/img/AllJobsPageDetail1.png | Bin 239175 -> 20567 bytes
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/core/src/main/scala/org/apache/spark/ui/jobs/AllJobsPage.scala
b/core/src/main/scala/org/apache/spark/ui/jobs/AllJobsPage.scala
index f4fe468bd939..0b51fe90417a 100644
--- a/core/src/main/scala/org/apache/spark/ui/jobs/AllJobsPage.scala
+++ b/core/src/main/scala/org/apache/spark/ui/jobs/AllJobsPage.scala
@@ -277,7 +277,8 @@ private[ui] class AllJobsPage(parent: JobsTab, store:
AppStatusStore) extends We
def render(request: HttpServletRequest): Seq[Node] = {
val appInfo = store.applicationInfo()
- val startTime = appInfo.attempts.head.startTime.getTime()
+ val startDate = appInfo.attempts.head.startTime
+ val startTime = startDate.getTime()
val endTime = appInfo.attempts.head.endTime.getTime()
val activeJobs = new ListBuffer[v1.JobData]()
@@ -327,6 +328,10 @@ private[ui] class AllJobsPage(parent: JobsTab, store:
AppStatusStore) extends We
<strong>User:</strong>
{parent.getSparkUser}
</li>
+ <li>
+ <strong>Started At:</strong>
+ {UIUtils.formatDate(startDate)}
+ </li>
<li>
<strong>Total Uptime:</strong>
{
diff --git a/docs/img/AllJobsPageDetail1.png b/docs/img/AllJobsPageDetail1.png
index c76d2fdefb1a..de7e8c888332 100644
Binary files a/docs/img/AllJobsPageDetail1.png and
b/docs/img/AllJobsPageDetail1.png differ
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]