You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:15:30 UTC

[jira] [Resolved] (SPARK-20623) Application link returns redirect to SPARK_LOCAL_IP and disregards SPARK_PUBLIC_DNS

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

Hyukjin Kwon resolved SPARK-20623.
----------------------------------
    Resolution: Incomplete

> Application link returns redirect to SPARK_LOCAL_IP and disregards SPARK_PUBLIC_DNS
> -----------------------------------------------------------------------------------
>
>                 Key: SPARK-20623
>                 URL: https://issues.apache.org/jira/browse/SPARK-20623
>             Project: Spark
>          Issue Type: Bug
>          Components: Web UI
>    Affects Versions: 2.1.0
>         Environment: Ubuntu 16.04
>            Reporter: Anders Roos
>            Priority: Minor
>              Labels: bulk-closed
>
> I have a setup with several machines in standalone mode where the master runs on a machine with and external and an internal network. I have set SPARK_LOCAL_IP to the internal IP and SPARK_PUBLIC_DNS to a hostname that points to the external IP. Then I have a proxy that forwards requests to the external IP to the internal IP.
> *The bug:* When clicking an application link I get a redirect response (302) to the internal IP (which is unreachable since it is on the internal network).
> *How to reproduce (I did this on my laptop pretending wlan was external network):*
> "External IP": 192.168.1.216
> "Internal IP": 192.168.1.184
> {code:title=/etc/hosts|borderStyle=solid}
> 192.168.1.216 possible-bug.spark.org                                                                                                                        
> {code}
> {code:title=spark-env.sh|borderStyle=solid}
> SPARK_PUBLIC_DNS=possible-bug.spark.org                                                                                                                      SPARK_LOCAL_IP=192.168.1.184                                                                                                                                        
> {code}
> {code:title=nginx-config|borderStule=solid}
> server {
>         listen 192.168.1.216:8080;
> 	listen 192.168.1.216:8081;
>         listen 192.168.1.216:4040;
> 	server_name possible-bug.spark.org;
>         location / {
>                  proxy_pass http://192.168.1.184:$server_port;
> 	}
> }
> {code}
> Now go to spark UI, run an application and click on the link and check the response.



--
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