[
https://issues.apache.org/jira/browse/SPARK-13117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15173214#comment-15173214
]
Jay Panicker commented on SPARK-13117:
--------------------------------------
On systems with multiple interfaces, ability to select the bind ip will be
nice, instead of binding to all.
Actually, the code has everything needed to do it, except one change.
Relevant lines from
spark-1.6.0/core/src/main/scala/org/apache/spark/ui/WebUI.scala:
...
...
protected val publicHostName =
Option(conf.getenv("SPARK_PUBLIC_DNS")).getOrElse(localHostName)
...
..
try {
serverInfo = Some(startJettyServer("0.0.0.0", port, handlers, conf, name))
logInfo("Started %s at http://%s:%d".format(className, publicHostName,
boundPort))
}
Note the "0.0.0.0", even though publicHostName is available as a configuration
option.
Making the following change and an export
SPARK_PUBLIC_DNS=<desired.ip.address> in spark-config.sh solved the problem:
serverInfo = Some(startJettyServer(publicHostName, port, handlers, conf,
name))
> 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
> Priority: Minor
>
> 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]