[
https://issues.apache.org/jira/browse/SPARK-20623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hyukjin Kwon updated SPARK-20623:
---------------------------------
Labels: bulk-closed (was: )
> 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: [email protected]
For additional commands, e-mail: [email protected]