spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anders Roos (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-20623) Application link returns redirect to SPARK_LOCAL_IP and disregards SPARK_PUBLIC_DNS
Date Sat, 06 May 2017 22:09:04 GMT

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

Anders Roos updated SPARK-20623:
--------------------------------
    Description: 
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.


  was:
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.com                                                     
                                                                   
{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.



> 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
>
> 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
(v6.3.15#6346)

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


Mime
View raw message