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

    https://github.com/apache/spark/pull/20327#discussion_r173611826
  
    --- 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 
once!")
         try {
    -      val host = Option(conf.getenv("SPARK_LOCAL_IP")).getOrElse("0.0.0.0")
    +      val host = if (Utils.isClusterMode(conf)) {
    --- End diff --
    
    This is the same issue as with the RPC address. the preference should be 
given to the setting by YARN admins. Opening a port on an expected network is 
an additional vulnerability. That said, YARN's default is also 0.0.0.0 which 
users will get with this patch as well.


---

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

Reply via email to