GitHub user attilapiros opened a pull request:

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

    [SPARK-23413][UI] Fix sorting tasks by Host / Executor ID at the Stage page

    ## What changes were proposed in this pull request?
    
    Fixing exception got at sorting tasks by Host / Executor ID:
    ```
            java.lang.IllegalArgumentException: Invalid sort column: Host
        at org.apache.spark.ui.jobs.ApiHelper$.indexName(StagePage.scala:1017)
        at 
org.apache.spark.ui.jobs.TaskDataSource.sliceData(StagePage.scala:694)
        at org.apache.spark.ui.PagedDataSource.pageData(PagedTable.scala:61)
        at org.apache.spark.ui.PagedTable$class.table(PagedTable.scala:96)
        at org.apache.spark.ui.jobs.TaskPagedTable.table(StagePage.scala:708)
        at org.apache.spark.ui.jobs.StagePage.liftedTree1$1(StagePage.scala:293)
        at org.apache.spark.ui.jobs.StagePage.render(StagePage.scala:282)
        at org.apache.spark.ui.WebUI$$anonfun$2.apply(WebUI.scala:82)
        at org.apache.spark.ui.WebUI$$anonfun$2.apply(WebUI.scala:82)
        at org.apache.spark.ui.JettyUtils$$anon$3.doGet(JettyUtils.scala:90)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at 
org.spark_project.jetty.servlet.ServletHolder.handle(ServletHolder.java:848)
        at 
org.spark_project.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584)
    ```
    
    Moreover some refactoring to avoid similar problems by introducing 
constants for each header name and reusing them at the identification of the 
corresponding sorting index.   
    
    ## How was this patch tested?
    
    Manually:
    
    ![screen shot 2018-02-13 at 18 57 
10](https://user-images.githubusercontent.com/2017933/36166532-1cfdf3b8-10f3-11e8-8d32-5fcaad2af214.png)


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

    $ git pull https://github.com/attilapiros/spark SPARK-23413

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

    https://github.com/apache/spark/pull/20601.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 #20601
    
----

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to