[
https://issues.apache.org/jira/browse/SPARK-13117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15173254#comment-15173254
]
Jay Panicker commented on SPARK-13117:
--------------------------------------
Sorry, [~devaraj.k] , I did not check the full thread - ran into this issue and
fixed it the way I mentioned.
Now, digging a bit deeper:
{code}
protected val publicHostName =
Option(conf.getenv("SPARK_PUBLIC_DNS")).getOrElse(localHostName)
{code}
and localHostName comes from:
{code}
protected val localHostName = Utils.localHostNameForURI()
{code}
and localHostNameForURI is define as:
{code}
def localHostNameForURI(): String = {
customHostname.getOrElse(InetAddresses.toUriString(localIpAddress))
}
{code}
ok..
{code}
def setCustomHostname(hostname: String) {
// DEBUG code
Utils.checkHost(hostname)
customHostname = Some(hostname)
}
{code}
and
{code}
private lazy val localIpAddress: InetAddress = findLocalInetAddress()
{code}
And findLocalInetAddress does this
{code}
val defaultIpOverride = System.getenv("SPARK_LOCAL_IP")
{code}
and among other things, also chages loopback IP to real IP...
While using "0.0.0.0" instead of localHostName certainly fixes the
loopback/localhost issue, it bypasses the sequence of steps above, so might
have other side effects..?
> 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]