GitHub user nblintao opened a pull request:

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

    [SPARK-15590] [WEBUI] Paginate Job Table in Jobs tab

    ## What changes were proposed in this pull request?
    
    This patch adds pagination support for the Job Tables in the Jobs tab. 
Pagination is provided for all of the three Job Tables (active, completed, and 
failed). Interactions (jumping, sorting, and setting page size) for paged 
tables are also included.
    
    ## How was this patch tested?
    
    Tested manually by using checking the Web UI after completing and failing 
hundreds of jobs.
    Generate completed jobs by:
    ```scala
    val d = sc.parallelize(Array(1,2,3,4,5))
    for(i <- 1 to 255){ var b = d.collect() }
    ```
    Generate failed jobs by calling the following code multiple times:
    ```scala
    var b = d.map(_/0).collect()
    ```
    Interactions like jumping, sorting, and setting page size are all tested.
    
    This shows the pagination for completed jobs:
    ![paginate success 
jobs](https://cloud.githubusercontent.com/assets/5558370/15986498/efa12ef6-303b-11e6-8b1d-c3382aeb9ad0.png)
    
    This shows the sorting works in job tables:
    
![sorting](https://cloud.githubusercontent.com/assets/5558370/15986539/98c8a81a-303c-11e6-86f2-8d2bc7924ee9.png)
    
    This shows the pagination for failed jobs and the effect of jumping and 
setting page size:
    ![paginate failed 
jobs](https://cloud.githubusercontent.com/assets/5558370/15986556/d8c1323e-303c-11e6-8e4b-7bdb030ea42b.png)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nblintao/spark dev

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

    https://github.com/apache/spark/pull/13620.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 #13620
    
----
commit 4db0e0978cd2cc57814733e6a6360407f10cb37b
Author: Tao Lin <[email protected]>
Date:   2016-06-11T16:04:50Z

    paginate job tables

----


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