You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Anders Roos (JIRA)" <ji...@apache.org> on 2017/05/06 21:00:05 UTC

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

Anders Roos created SPARK-20623:
-----------------------------------

             Summary: 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.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.




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