aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/resources/HistoryServerExpectations/application_list_json_expectation.json
diff options
context:
space:
mode:
authorzhuol <zhuol@yahoo-inc.com>2016-01-29 11:54:58 -0600
committerTom Graves <tgraves@yahoo-inc.com>2016-01-29 11:54:58 -0600
commite4c1162b6b3dbc8fc95cfe75c6e0bc2915575fb2 (patch)
tree060a41b392bba3eae650226f032b8eee4fc423d5 /core/src/test/resources/HistoryServerExpectations/application_list_json_expectation.json
parente51b6eaa9e9c007e194d858195291b2b9fb27322 (diff)
downloadspark-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/application_list_json_expectation.json')
-rw-r--r--core/src/test/resources/HistoryServerExpectations/application_list_json_expectation.json18
1 files changed, 17 insertions, 1 deletions
diff --git a/core/src/test/resources/HistoryServerExpectations/application_list_json_expectation.json b/core/src/test/resources/HistoryServerExpectations/application_list_json_expectation.json
index d575bf2f28..5bbb4ceb97 100644
--- a/core/src/test/resources/HistoryServerExpectations/application_list_json_expectation.json
+++ b/core/src/test/resources/HistoryServerExpectations/application_list_json_expectation.json
@@ -4,6 +4,8 @@
"attempts" : [ {
"startTime" : "2015-05-06T13:03:00.893GMT",
"endTime" : "2015-05-06T13:03:11.398GMT",
+ "lastUpdated" : "",
+ "duration" : 10505,
"sparkUser" : "irashid",
"completed" : true
} ]
@@ -14,12 +16,16 @@
"attemptId" : "2",
"startTime" : "2015-05-06T13:03:00.893GMT",
"endTime" : "2015-05-06T13:03:00.950GMT",
+ "lastUpdated" : "",
+ "duration" : 57,
"sparkUser" : "irashid",
"completed" : true
}, {
"attemptId" : "1",
"startTime" : "2015-05-06T13:03:00.880GMT",
"endTime" : "2015-05-06T13:03:00.890GMT",
+ "lastUpdated" : "",
+ "duration" : 10,
"sparkUser" : "irashid",
"completed" : true
} ]
@@ -30,12 +36,16 @@
"attemptId" : "2",
"startTime" : "2015-03-17T23:11:50.242GMT",
"endTime" : "2015-03-17T23:12:25.177GMT",
+ "lastUpdated" : "",
+ "duration" : 34935,
"sparkUser" : "irashid",
"completed" : true
}, {
"attemptId" : "1",
"startTime" : "2015-03-16T19:25:10.242GMT",
"endTime" : "2015-03-16T19:25:45.177GMT",
+ "lastUpdated" : "",
+ "duration" : 34935,
"sparkUser" : "irashid",
"completed" : true
} ]
@@ -45,6 +55,8 @@
"attempts" : [ {
"startTime" : "2015-02-28T00:02:38.277GMT",
"endTime" : "2015-02-28T00:02:46.912GMT",
+ "lastUpdated" : "",
+ "duration" : 8635,
"sparkUser" : "irashid",
"completed" : true
} ]
@@ -54,6 +66,8 @@
"attempts" : [ {
"startTime" : "2015-02-03T16:42:59.720GMT",
"endTime" : "2015-02-03T16:43:08.731GMT",
+ "lastUpdated" : "",
+ "duration" : 9011,
"sparkUser" : "irashid",
"completed" : true
} ]
@@ -63,7 +77,9 @@
"attempts" : [ {
"startTime" : "2015-02-03T16:42:38.277GMT",
"endTime" : "2015-02-03T16:42:46.912GMT",
+ "lastUpdated" : "",
+ "duration" : 8635,
"sparkUser" : "irashid",
"completed" : true
} ]
-} ] \ No newline at end of file
+} ]