You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2017/02/02 11:54:51 UTC

[jira] [Commented] (SPARK-19431) Use HTML Relative Links to Access UI Behind Gateways

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

Sean Owen commented on SPARK-19431:
-----------------------------------

I know what you mean, but this would make these references relative to the page's path, not to the root of some web app. That is, any page not currently at the root of the project would not load the CSS stylesheet correctly then.

However, isn't this what spark.ui.proxyBase is for? you can see prependBaseUri there which is what uses it.

> Use HTML Relative Links to Access UI Behind Gateways
> ----------------------------------------------------
>
>                 Key: SPARK-19431
>                 URL: https://issues.apache.org/jira/browse/SPARK-19431
>             Project: Spark
>          Issue Type: Improvement
>          Components: Web UI
>    Affects Versions: 2.1.0
>            Reporter: Zane
>            Priority: Minor
>              Labels: easyfix, features
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The Spark UI should be accessible behind a gateway that redirects based on the URL path (i.e. http://domain.com/spark --> http://private.domain.com:8080). 
> Currently the Spark UI uses root links in the html page. It would be nice if it used relative links instead. By eliminating the first forward-slash "/" the Spark UI can be accessible behind an HTTP gateway. 
> For example, in core/src/main/scala/org/apache/spark/ui/UIUtils.scala
> {quote}
> ...
> <link rel="stylesheet" href={prependBaseUri("/static/bootstrap.min.css")} type="text/css"/>
> ...
> {quote}
> could be changed to
> {quote}
> ...
> <link rel="stylesheet" href={prependBaseUri("static/bootstrap.min.css")} type="text/css"/>
> ...
> {quote}
> This would allow the Spark UI to be accessible behind a gateway that redirects based on the URL path.



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

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