Skip to content

Commit 300c40f

Browse files
guoxiaolongsrowen
authored andcommitted
[SPARK-23384][WEB-UI] When it has no incomplete(completed) applications found, the last updated time is not formatted and client local time zone is not show in history server web ui.
## What changes were proposed in this pull request? When it has no incomplete(completed) applications found, the last updated time is not formatted and client local time zone is not show in history server web ui. It is a bug. fix before: ![1](https://user-images.githubusercontent.com/26266482/36070635-264d7cf0-0f3a-11e8-8426-14135ffedb16.png) fix after: ![2](https://user-images.githubusercontent.com/26266482/36070651-8ec3800e-0f3a-11e8-991c-6122cc9539fe.png) ## How was this patch tested? (Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests) (If this patch involves UI changes, please attach a screenshot; otherwise, remove this) Please review http://spark.apache.org/contributing.html before opening a pull request. Author: guoxiaolong <[email protected]> Closes #20573 from guoxiaolongzte/SPARK-23384.
1 parent 9dae715 commit 300c40f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/scala/org/apache/spark/deploy/history/HistoryPage.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ private[history] class HistoryPage(parent: HistoryServer) extends WebUIPage("")
3737
val lastUpdatedTime = parent.getLastUpdatedTime()
3838
val providerConfig = parent.getProviderConfig()
3939
val content =
40-
<script src={UIUtils.prependBaseUri("/static/historypage-common.js")}></script>
40+
<script src={UIUtils.prependBaseUri("/static/historypage-common.js")}></script> ++
41+
<script src={UIUtils.prependBaseUri("/static/utils.js")}></script>
4142
<div>
4243
<div class="container-fluid">
4344
<ul class="unstyled">
@@ -65,7 +66,6 @@ private[history] class HistoryPage(parent: HistoryServer) extends WebUIPage("")
6566
if (allAppsSize > 0) {
6667
<script src={UIUtils.prependBaseUri("/static/dataTables.rowsGroup.js")}></script> ++
6768
<div id="history-summary" class="row-fluid"></div> ++
68-
<script src={UIUtils.prependBaseUri("/static/utils.js")}></script> ++
6969
<script src={UIUtils.prependBaseUri("/static/historypage.js")}></script> ++
7070
<script>setAppLimit({parent.maxApplications})</script>
7171
} else if (requestedIncomplete) {

0 commit comments

Comments
 (0)