diff options
author | zhuol <zhuol@yahoo-inc.com> | 2016-01-29 11:54:58 -0600 |
---|---|---|
committer | Tom Graves <tgraves@yahoo-inc.com> | 2016-01-29 11:54:58 -0600 |
commit | e4c1162b6b3dbc8fc95cfe75c6e0bc2915575fb2 (patch) | |
tree | 060a41b392bba3eae650226f032b8eee4fc423d5 /core/src/test/resources/HistoryServerExpectations/one_app_json_expectation.json | |
parent | e51b6eaa9e9c007e194d858195291b2b9fb27322 (diff) | |
download | spark-e4c1162b6b3dbc8fc95cfe75c6e0bc2915575fb2.tar.gz spark-e4c1162b6b3dbc8fc95cfe75c6e0bc2915575fb2.tar.bz2 spark-e4c1162b6b3dbc8fc95cfe75c6e0bc2915575fb2.zip |
[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:
![historypage](https://cloud.githubusercontent.com/assets/11683054/12184383/89bad774-b55a-11e5-84e4-b0276172976f.png)
Search:
![search](https://cloud.githubusercontent.com/assets/11683054/12184385/8d3b94b0-b55a-11e5-869a-cc0ef0a4242a.png)
Sort by started time:
![sort-by-started-time](https://cloud.githubusercontent.com/assets/11683054/12184387/8f757c3c-b55a-11e5-98c8-577936366566.png)
Author: zhuol <zhuol@yahoo-inc.com>
Closes #10648 from zhuoliu/10873.
Diffstat (limited to 'core/src/test/resources/HistoryServerExpectations/one_app_json_expectation.json')
-rw-r--r-- | core/src/test/resources/HistoryServerExpectations/one_app_json_expectation.json | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/test/resources/HistoryServerExpectations/one_app_json_expectation.json b/core/src/test/resources/HistoryServerExpectations/one_app_json_expectation.json index 07489ad964..cca32c7910 100644 --- a/core/src/test/resources/HistoryServerExpectations/one_app_json_expectation.json +++ b/core/src/test/resources/HistoryServerExpectations/one_app_json_expectation.json @@ -4,7 +4,9 @@ "attempts" : [ { "startTime" : "2015-02-03T16:42:59.720GMT", "endTime" : "2015-02-03T16:43:08.731GMT", + "lastUpdated" : "", + "duration" : 9011, "sparkUser" : "irashid", "completed" : true } ] -}
\ No newline at end of file +} |