[ 
https://issues.apache.org/jira/browse/SPARK-20042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sean Owen resolved SPARK-20042.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 2.1.2
                   2.2.0

Issue resolved by pull request 17370
[https://github.com/apache/spark/pull/17370]

> Buttons on executor log page don't work with spark.ui.reverseProxy=true
> -----------------------------------------------------------------------
>
>                 Key: SPARK-20042
>                 URL: https://issues.apache.org/jira/browse/SPARK-20042
>             Project: Spark
>          Issue Type: Bug
>          Components: Web UI
>    Affects Versions: 2.1.0
>            Reporter: Oliver Koeth
>            Priority: Minor
>              Labels: reverse-proxy
>             Fix For: 2.2.0, 2.1.2
>
>
> The "Load More" and "Load New" buttons on the executor log page generate 
> full-path URLs to the "/log" REST end point in the worker. If the worker is 
> served via master reverse proxy (spark.ui.reverseProxy=true), the calls go to 
> the master web UI and return the HTML for the master page, instead of the 
> expected REST data.
> Successfully tested the following fix:
> Use JavaScript in log-view.js that checks for a /proxy/<target>/ portion in 
> the URL and prefixes that to the REST call, similar to the way this is done 
> in executorspage.js
> function getRESTEndPoint() {
>       var words = document.baseURI.split('/');
>       var ind = words.indexOf("proxy");
>       if (ind > 0) {
>           return words.slice(0, ind + 2).join('/') + "/log";
>       }
>       return "/log"
> }
> function loadNew() {
>   $.ajax({
>     type: "GET",
>     url: getRESTEndPoint() + baseParams + "&byteLength=0",
> ... etc



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to