You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Cédric Hernalsteens (JIRA)" <ji...@apache.org> on 2016/10/23 15:49:58 UTC

[jira] [Comment Edited] (SPARK-15487) Spark Master UI to reverse proxy Application and Workers UI

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

Cédric Hernalsteens edited comment on SPARK-15487 at 10/23/16 3:49 PM:
-----------------------------------------------------------------------

I'm glad to see that the PR went through.

I got it to work by setting 

-Dspark.ui.reverseProxy=true in SPARK_MASTER_OPTS.

Is this the correct way to proceed?


was (Author: chernals):
I'm glad to see that the PR went through.

However I'm not sure how this is supposed to work.

The Master webui gives me this :
worker-20161023152840-172.28.0.8-42846 linking to the internal docker IP.

So I tried to access the worker UI from

http://spark-master-public-ip/worker-20161023152840-172.28.0.8-42846
http://spark-master-public-ip/target/worker-20161023152840-172.28.0.8-42846
http://spark-master-public-ip/target/20161023152840-172.28.0.8-42846

(from what I read in the discussion the last one should have been correct)

However I'm stuck at the master's webui.

I'm running 2.1.0 latest nightly build http://people.apache.org/~pwendell/spark-nightly/spark-master-bin/latest/

> Spark Master UI to reverse proxy Application and Workers UI
> -----------------------------------------------------------
>
>                 Key: SPARK-15487
>                 URL: https://issues.apache.org/jira/browse/SPARK-15487
>             Project: Spark
>          Issue Type: Improvement
>          Components: Web UI
>    Affects Versions: 1.6.0, 1.6.1
>            Reporter: Gurvinder
>            Assignee: Gurvinder
>            Priority: Minor
>             Fix For: 2.1.0
>
>
> Currently when running in Standalone mode, Spark UI's link to workers and application drivers are pointing to internal/protected network endpoints. So to access workers/application UI user's machine has to connect to VPN or need to have access to internal network directly.
> Therefore the proposal is to make Spark master UI reverse proxy this information back to the user. So only Spark master UI needs to be opened up to internet. 
> The minimal changes can be done by adding another route e.g. http://spark-master.com/target/<endpoint>/ so when request goes to target, ProxyServlet kicks in and takes the <endpoint> and forwards the request to it and send response back to user.
> More information about discussions for this features can be found on this mailing list thread http://apache-spark-developers-list.1001551.n3.nabble.com/spark-on-kubernetes-tc17599.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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