File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
core/src/main/scala/org/apache/spark Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ private[spark] class Master(
9696 val webUi = new MasterWebUI (this , webUiPort)
9797
9898 val masterPublicAddress = {
99- val envVar = System .getenv(" SPARK_PUBLIC_DNS" )
99+ val envVar = conf .getenv(" SPARK_PUBLIC_DNS" )
100100 if (envVar != null ) envVar else host
101101 }
102102
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ private[spark] class Worker(
121121 val shuffleService = new StandaloneWorkerShuffleService (conf, securityMgr)
122122
123123 val publicAddress = {
124- val envVar = System .getenv(" SPARK_PUBLIC_DNS" )
124+ val envVar = conf .getenv(" SPARK_PUBLIC_DNS" )
125125 if (envVar != null ) envVar else host
126126 }
127127 var webUi : WorkerWebUI = null
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ private[spark] abstract class WebUI(
4747 protected val handlers = ArrayBuffer [ServletContextHandler ]()
4848 protected var serverInfo : Option [ServerInfo ] = None
4949 protected val localHostName = Utils .localHostName()
50- protected val publicHostName = Option (System .getenv(" SPARK_PUBLIC_DNS" )).getOrElse(localHostName)
50+ protected val publicHostName = Option (conf .getenv(" SPARK_PUBLIC_DNS" )).getOrElse(localHostName)
5151 private val className = Utils .getFormattedClassName(this )
5252
5353 def getBasePath : String = basePath
You can’t perform that action at this time.
0 commit comments