[
https://issues.apache.org/jira/browse/SPARK-13117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15444942#comment-15444942
]
Jacek Lewandowski edited comment on SPARK-13117 at 8/29/16 6:18 AM:
--------------------------------------------------------------------
The provided solution is wrong because it is inconsistent with the rest of
Spark.
In every other place, when we want to refer to bind address, we should use
{{Utils.localHostname}}
(https://github.com/apache/spark/blob/branch-2.0/core/src/main/scala/org/apache/spark/util/Utils.scala#L895)
so that when people want to set it programmatically they are able to do that
(https://github.com/apache/spark/blob/branch-2.0/core/src/main/scala/org/apache/spark/util/Utils.scala#L886).
Another issue is that people do not always want to bind WebUI to the same
interface as Spark internal communication.
I think there should be another environment variable for binding web interface
with fallback to {{Utils.localHostname}}.
was (Author: jlewandowski):
The provided solution is wrong because it is inconsistent with the rest of
Spark.
In every other place, when we want to refer to bind address, we should use
{{Utils.localHostname}}
(https://github.com/apache/spark/blob/branch-2.0/core/src/main/scala/org/apache/spark/util/Utils.scala#L895)
so that when people want to set it programmatically they are able to do that
(https://github.com/apache/spark/blob/branch-2.0/core/src/main/scala/org/apache/spark/util/Utils.scala#L886).
> WebUI should use the local ip not 0.0.0.0
> -----------------------------------------
>
> Key: SPARK-13117
> URL: https://issues.apache.org/jira/browse/SPARK-13117
> Project: Spark
> Issue Type: Bug
> Components: Web UI
> Affects Versions: 1.6.0
> Reporter: Jeremiah Jordan
> Assignee: Devaraj K
> Priority: Minor
> Fix For: 2.0.0
>
>
> When SPARK_LOCAL_IP is set everything seems to correctly bind and use that IP
> except the WebUI. The WebUI should use the SPARK_LOCAL_IP not always use
> 0.0.0.0
> https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/ui/WebUI.scala#L137
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]