GitHub user ajbozarth opened a pull request:

    https://github.com/apache/spark/pull/14835

    [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?
    
    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.maxApplications` conf to limit the number of applications the 
History Server displays. 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 included a new optional `limit` param for the `applications` api 
as a related new feature. This allows a user to limit the number of 
applications returned by the api similarly to the above conf in cases where the 
sysadmin hasn't set the maximum. I've also added new new test for this feature 
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

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/14835.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 #14835
    
----
commit 9bcb02da53cbe8a402960ce812c0fdaa1faa375b
Author: Alex Bozarth <[email protected]>
Date:   2016-08-26T20:12:50Z

    Added limit param to applications list api and maxApplications conf to 
HistoryServer

commit fab32f980d44ae42b690453dcfb192dd83d05e34
Author: Alex Bozarth <[email protected]>
Date:   2016-08-26T20:21:05Z

    Switched to use ConfigBuilder

commit 6163f132f686571707262eee2141f890a1de05d4
Author: Alex Bozarth <[email protected]>
Date:   2016-08-26T20:35:32Z

    Added tests and fixed a typos

----


---
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]

Reply via email to