GitHub user ajbozarth opened a pull request:
https://github.com/apache/spark/pull/14886
[SPARK-17243] [Web UI] Spark 2.0 History Server won't load with very large
application history
## What changes were proposed in this pull request?
back port of #14835 addressing merge conflicts
With the new History Server the summary page loads the application list via
the the REST API, this makes it very slow to impossible to load with large
(10K+) application history. This pr fixes this by adding the
`spark.history.ui.maxApplications` conf to limit the number of applications the
History Server displays. This is accomplished using a new optional `limit`
param for the `applications` api. (Note this only applies to what the summary
page displays, all the Application UI's are still accessible if the user knows
the App ID and goes to the Application UI directly.)
I've also added a new test for the `limit` param in
`HistoryServerSuite.scala`
## How was this patch tested?
Manual testing and dev/run-tests
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ajbozarth/spark spark17243-branch-2.0
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/14886.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #14886
----
commit 22ddf01727afa9cf57456c9f198a2bdbd9f1b028
Author: Alex Bozarth <[email protected]>
Date: 2016-08-30T21:33:54Z
[SPARK-17243][WEB UI] Spark 2.0 History Server won't load with very large
application history
With the new History Server the summary page loads the application list via
the the REST API, this makes it very slow to impossible to load with large
(10K+) application history. This pr fixes this by adding the
`spark.history.ui.maxApplications` conf to limit the number of applications the
History Server displays. This is accomplished using a new optional `limit`
param for the `applications` api. (Note this only applies to what the summary
page displays, all the Application UI's are still accessible if the user knows
the App ID and goes to the Application UI directly.)
I've also added a new test for the `limit` param in
`HistoryServerSuite.scala`
Manual testing and dev/run-tests
Author: Alex Bozarth <[email protected]>
Closes #14835 from ajbozarth/spark17243.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]