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(
96
96
val webUi = new MasterWebUI (this , webUiPort)
97
97
98
98
val masterPublicAddress = {
99
- val envVar = System .getenv(" SPARK_PUBLIC_DNS" )
99
+ val envVar = conf .getenv(" SPARK_PUBLIC_DNS" )
100
100
if (envVar != null ) envVar else host
101
101
}
102
102
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ private[spark] class Worker(
121
121
val shuffleService = new StandaloneWorkerShuffleService (conf, securityMgr)
122
122
123
123
val publicAddress = {
124
- val envVar = System .getenv(" SPARK_PUBLIC_DNS" )
124
+ val envVar = conf .getenv(" SPARK_PUBLIC_DNS" )
125
125
if (envVar != null ) envVar else host
126
126
}
127
127
var webUi : WorkerWebUI = null
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ private[spark] abstract class WebUI(
47
47
protected val handlers = ArrayBuffer [ServletContextHandler ]()
48
48
protected var serverInfo : Option [ServerInfo ] = None
49
49
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)
51
51
private val className = Utils .getFormattedClassName(this )
52
52
53
53
def getBasePath : String = basePath
You can’t perform that action at this time.
0 commit comments