Github user vanzin commented on a diff in the pull request:
    --- Diff: core/src/main/scala/org/apache/spark/ui/WebUI.scala ---
    @@ -126,7 +126,11 @@ private[spark] abstract class WebUI(
       def bind(): Unit = {
         assert(serverInfo.isEmpty, s"Attempted to bind $className more than 
         try {
    -      val host = Option(conf.getenv("SPARK_LOCAL_IP")).getOrElse("")
    +      val host = if (Utils.isClusterMode(conf)) {
    --- End diff --
    Is this change actually required by the rest of your changes? What is the 
advantage of binding the UI to a specific host instead of ""?
    Leaving it as is would also avoid adding `isClusterMode`.


To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to