-
- Downloads
[SPARK-14049][CORE] Add functionality in spark history sever API to query applications by end time
## What changes were proposed in this pull request? Currently, spark history server REST API provides functionality to query applications by application start time range based on minDate and maxDate query parameters, but it lacks support to query applications by their end time. In this pull request we are proposing optional minEndDate and maxEndDate query parameters and filtering capability based on these parameters to spark history server REST API. This functionality can be used for following queries, 1. Applications finished in last 'x' minutes 2. Applications finished before 'y' time 3. Applications finished between 'x' time to 'y' time 4. Applications started from 'x' time and finished before 'y' time. For backward compatibility, we can keep existing minDate and maxDate query parameters as they are and they can continue support filtering based on start time range. ## How was this patch tested? Existing unit tests and 4 new unit tests. Author: Parag Chaudhari <paragpc@amazon.com> Closes #11867 from paragpc/master-SHS-query-by-endtime_2.
Showing
- core/src/main/scala/org/apache/spark/status/api/v1/ApplicationListResource.scala 20 additions, 2 deletions.../apache/spark/status/api/v1/ApplicationListResource.scala
- core/src/test/resources/HistoryServerExpectations/maxEndDate_app_list_json_expectation.json 95 additions, 0 deletions...verExpectations/maxEndDate_app_list_json_expectation.json
- core/src/test/resources/HistoryServerExpectations/minDate_and_maxEndDate_app_list_json_expectation.json 53 additions, 0 deletions...ons/minDate_and_maxEndDate_app_list_json_expectation.json
- core/src/test/resources/HistoryServerExpectations/minEndDate_and_maxEndDate_app_list_json_expectation.json 53 additions, 0 deletions.../minEndDate_and_maxEndDate_app_list_json_expectation.json
- core/src/test/resources/HistoryServerExpectations/minEndDate_app_list_json_expectation.json 70 additions, 0 deletions...verExpectations/minEndDate_app_list_json_expectation.json
- core/src/test/scala/org/apache/spark/deploy/history/HistoryServerSuite.scala 6 additions, 0 deletions.../org/apache/spark/deploy/history/HistoryServerSuite.scala
- docs/monitoring.md 14 additions, 3 deletionsdocs/monitoring.md
Loading
Please register or sign in to comment