[
https://issues.apache.org/jira/browse/SPARK-13117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15173224#comment-15173224
]
Devaraj K commented on SPARK-13117:
-----------------------------------
I think we can start the Jetty server with the default value as "0.0.0.0" and
it can take effect of the configured value for SPARK_PUBLIC_DNS if it is
configured. It would change only for the Web UI and doesn't impact any other
things. Changes will be some thing like below,
{code:xml}
protected val publicHostName =
Option(conf.getenv("SPARK_PUBLIC_DNS")).getOrElse("0.0.0.0")
{code}
{code:xml}
try {
serverInfo = Some(startJettyServer(publicHostName, port, sslOptions,
handlers, conf, name))
logInfo("Started %s at http://%s:%d".format(className, publicHostName,
boundPort))
} catch {
{code}
[~srowen], any suggestions? Thanks
> 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]