Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20327#discussion_r171382335
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/WebUI.scala ---
    @@ -126,7 +126,7 @@ private[spark] abstract class WebUI(
       def bind(): Unit = {
         assert(serverInfo.isEmpty, s"Attempted to bind $className more than 
once!")
         try {
    -      val host = Option(conf.getenv("SPARK_LOCAL_IP")).getOrElse("0.0.0.0")
    +      val host = conf.get(DRIVER_BIND_ADDRESS)
    --- End diff --
    
    This actually changes behavior, because now you'll always be listening on a 
specific interface instead of "0.0.0.0".
    
    Try it out: run spark-shell in local mode; it should try to figure out your 
non-loopback address for the driver, but you should still be able to connect to 
"127.0.0.1:4040" in your browser. With your changes that will probably stop 
working.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to