aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorzsxwing <zsxwing@gmail.com>2014-10-30 15:33:56 -0700
committerAndrew Or <andrew@databricks.com>2014-10-30 15:33:56 -0700
commitd3450578357d6f7598243ee2ab11c338085ad9c1 (patch)
treebf9ac2e4d47f6c59c4fe6ce0be9aa16805a9d202 /core/src
parent849b43ec0f9e4f2ef962a054eb78cd0fc94a142a (diff)
downloadspark-d3450578357d6f7598243ee2ab11c338085ad9c1.tar.gz
spark-d3450578357d6f7598243ee2ab11c338085ad9c1.tar.bz2
spark-d3450578357d6f7598243ee2ab11c338085ad9c1.zip
[SPARK-4153][WebUI] Update the sort keys for HistoryPage
Sort "Started", "Completed", "Duration" and "Last Updated" by time. Author: zsxwing <zsxwing@gmail.com> Closes #3014 from zsxwing/SPARK-4153 and squashes the following commits: ec8b9ad [zsxwing] Sort "Started", "Completed", "Duration" and "Last Updated" by time
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/scala/org/apache/spark/deploy/history/HistoryPage.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/main/scala/org/apache/spark/deploy/history/HistoryPage.scala b/core/src/main/scala/org/apache/spark/deploy/history/HistoryPage.scala
index d25c29113d..0e249e51a7 100644
--- a/core/src/main/scala/org/apache/spark/deploy/history/HistoryPage.scala
+++ b/core/src/main/scala/org/apache/spark/deploy/history/HistoryPage.scala
@@ -84,11 +84,11 @@ private[spark] class HistoryPage(parent: HistoryServer) extends WebUIPage("") {
<tr>
<td><a href={uiAddress}>{info.id}</a></td>
<td>{info.name}</td>
- <td>{startTime}</td>
- <td>{endTime}</td>
- <td>{duration}</td>
+ <td sorttable_customkey={info.startTime.toString}>{startTime}</td>
+ <td sorttable_customkey={info.endTime.toString}>{endTime}</td>
+ <td sorttable_customkey={(info.endTime - info.startTime).toString}>{duration}</td>
<td>{info.sparkUser}</td>
- <td>{lastUpdated}</td>
+ <td sorttable_customkey={info.lastUpdated.toString}>{lastUpdated}</td>
</tr>
}
}