Skip to content

Commit 85045b6

Browse files
committed
Optionally read from SPARK_LOCAL_HOSTNAME
1 parent 3fddc94 commit 85045b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/util/Utils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ private[spark] object Utils extends Logging {
701701
}
702702
}
703703

704-
private var customHostname: Option[String] = None
704+
private var customHostname: Option[String] = sys.env.get("SPARK_LOCAL_HOSTNAME")
705705

706706
/**
707707
* Allow setting a custom host name because when we run on Mesos we need to use the same

0 commit comments

Comments
 (0)