spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Gaido (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-26242) Leading slash breaks proxying
Date Sat, 01 Dec 2018 17:02:00 GMT

    [ https://issues.apache.org/jira/browse/SPARK-26242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16705916#comment-16705916
] 

Marco Gaido commented on SPARK-26242:
-------------------------------------

You can set {{spark.ui.proxyBase}} or the proxy can set the base path in the {{X-Forwarded-Context}}
HTTP header if you need this to be dynamic and controlled by the proxy.

> Leading slash breaks proxying
> -----------------------------
>
>                 Key: SPARK-26242
>                 URL: https://issues.apache.org/jira/browse/SPARK-26242
>             Project: Spark
>          Issue Type: Bug
>          Components: Web UI
>    Affects Versions: 2.4.0
>            Reporter: Ryan Lovett
>            Priority: Minor
>
> The WebUI prefixes "/" at the beginning of each link path (e.g. /jobs) which breaks
navigation when attempting to proxy the app at another URL. In my case, a pyspark user
creates a SparkContext within a JupyterHub-hosted notebook and attempts to proxy it with nbserverproxy
off of address.of.jupyter.hub/user/proxy/4040/. Since WebUI sets the URLs of its pages to
begin with "/", the browser sends the user to address.of.jupyter.hub/jobs, address.of.jupyter.hub/stages,
etc.
>  
> Similar: [https://github.com/mesosphere/spark/commit/ada99f1b3801e81db2e367f219377e93f5d32655|https://github.com/apache/spark/pull/11369]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message