Skip to content

Commit c2f7e47

Browse files
authored
Revert "[SPARK-21642][CORE] Use FQDN for DRIVER_HOST_ADDRESS instead of ip address" (apache-spark-on-k8s#255)
This reverts commit d695a52.
1 parent 4ecd227 commit c2f7e47

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

core/src/main/scala/org/apache/spark/internal/config/package.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ package object config {
253253
private[spark] val DRIVER_HOST_ADDRESS = ConfigBuilder("spark.driver.host")
254254
.doc("Address of driver endpoints.")
255255
.stringConf
256-
.createWithDefault(Utils.localCanonicalHostName())
256+
.createWithDefault(Utils.localHostName())
257257

258258
private[spark] val DRIVER_BIND_ADDRESS = ConfigBuilder("spark.driver.bindAddress")
259259
.doc("Address where to bind network listen sockets on the driver.")

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -936,13 +936,6 @@ private[spark] object Utils extends Logging {
936936
customHostname = Some(hostname)
937937
}
938938

939-
/**
940-
* Get the local machine's FQDN.
941-
*/
942-
def localCanonicalHostName(): String = {
943-
customHostname.getOrElse(localIpAddress.getCanonicalHostName)
944-
}
945-
946939
/**
947940
* Get the local machine's hostname.
948941
*/

0 commit comments

Comments
 (0)