-
- Downloads
[SPARK-10873] Support column sort and search for History Server.
[SPARK-10873] Support column sort and search for History Server using jQuery DataTable and REST API. Before this commit, the history server was generated hard-coded html and can not support search, also, the sorting was disabled if there is any application that has more than one attempt. Supporting search and sort (over all applications rather than the 20 entries in the current page) in any case will greatly improve user experience. 1. Create the historypage-template.html for displaying application information in datables. 2. historypage.js uses jQuery to access the data from /api/v1/applications REST API, and use DataTable to display each application's information. For application that has more than one attempt, the RowsGroup is used to merge such entries while at the same time supporting sort and search. 3. "duration" and "lastUpdated" rest API are added to application's "attempts". 4. External javascirpt and css files for datatables, RowsGroup and jquery plugins are added with licenses clarified. Snapshots for how it looks like now: History page view:  Search:  Sort by started time:  Author: zhuol <zhuol@yahoo-inc.com> Closes #10648 from zhuoliu/10873.
Showing
- .rat-excludes 10 additions, 0 deletions.rat-excludes
- LICENSE 6 additions, 0 deletionsLICENSE
- core/src/main/resources/org/apache/spark/ui/static/dataTables.bootstrap.css 319 additions, 0 deletions...urces/org/apache/spark/ui/static/dataTables.bootstrap.css
- core/src/main/resources/org/apache/spark/ui/static/dataTables.bootstrap.min.js 8 additions, 0 deletions...es/org/apache/spark/ui/static/dataTables.bootstrap.min.js
- core/src/main/resources/org/apache/spark/ui/static/dataTables.rowsGroup.js 224 additions, 0 deletions...ources/org/apache/spark/ui/static/dataTables.rowsGroup.js
- core/src/main/resources/org/apache/spark/ui/static/historypage-template.html 81 additions, 0 deletions...rces/org/apache/spark/ui/static/historypage-template.html
- core/src/main/resources/org/apache/spark/ui/static/historypage.js 159 additions, 0 deletions.../main/resources/org/apache/spark/ui/static/historypage.js
- core/src/main/resources/org/apache/spark/ui/static/jquery.blockUI.min.js 6 additions, 0 deletions...esources/org/apache/spark/ui/static/jquery.blockUI.min.js
- core/src/main/resources/org/apache/spark/ui/static/jquery.cookies.2.2.0.min.js 18 additions, 0 deletions...es/org/apache/spark/ui/static/jquery.cookies.2.2.0.min.js
- core/src/main/resources/org/apache/spark/ui/static/jquery.dataTables.1.10.4.min.css 1 addition, 0 deletions...g/apache/spark/ui/static/jquery.dataTables.1.10.4.min.css
- core/src/main/resources/org/apache/spark/ui/static/jquery.dataTables.1.10.4.min.js 157 additions, 0 deletions...rg/apache/spark/ui/static/jquery.dataTables.1.10.4.min.js
- core/src/main/resources/org/apache/spark/ui/static/jquery.mustache.js 592 additions, 0 deletions...n/resources/org/apache/spark/ui/static/jquery.mustache.js
- core/src/main/resources/org/apache/spark/ui/static/jsonFormatter.min.css 1 addition, 0 deletions...esources/org/apache/spark/ui/static/jsonFormatter.min.css
- core/src/main/resources/org/apache/spark/ui/static/jsonFormatter.min.js 2 additions, 0 deletions...resources/org/apache/spark/ui/static/jsonFormatter.min.js
- core/src/main/scala/org/apache/spark/deploy/history/HistoryPage.scala 23 additions, 170 deletions...n/scala/org/apache/spark/deploy/history/HistoryPage.scala
- core/src/main/scala/org/apache/spark/status/api/v1/ApplicationListResource.scala 14 additions, 0 deletions.../apache/spark/status/api/v1/ApplicationListResource.scala
- core/src/main/scala/org/apache/spark/status/api/v1/api.scala 2 additions, 0 deletionscore/src/main/scala/org/apache/spark/status/api/v1/api.scala
- core/src/main/scala/org/apache/spark/ui/SparkUI.scala 2 additions, 0 deletionscore/src/main/scala/org/apache/spark/ui/SparkUI.scala
- core/src/main/scala/org/apache/spark/ui/UIUtils.scala 11 additions, 0 deletionscore/src/main/scala/org/apache/spark/ui/UIUtils.scala
- core/src/test/resources/HistoryServerExpectations/application_list_json_expectation.json 17 additions, 1 deletion...ServerExpectations/application_list_json_expectation.json
Loading
Please register or sign in to comment