You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Marco Gaido (JIRA)" <ji...@apache.org> on 2018/12/01 17:02:00 UTC
[jira] [Commented] (SPARK-26242) Leading slash breaks proxying
[ 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