Skip to content

Commit

Permalink
Revert "[SPARK-21642][CORE] Use FQDN for DRIVER_HOST_ADDRESS instead …
Browse files Browse the repository at this point in the history
…of ip address" (apache#255)

This reverts commit d695a52.
  • Loading branch information
ash211 authored Sep 1, 2017
1 parent 4ecd227 commit c2f7e47
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ package object config {
private[spark] val DRIVER_HOST_ADDRESS = ConfigBuilder("spark.driver.host")
.doc("Address of driver endpoints.")
.stringConf
.createWithDefault(Utils.localCanonicalHostName())
.createWithDefault(Utils.localHostName())

private[spark] val DRIVER_BIND_ADDRESS = ConfigBuilder("spark.driver.bindAddress")
.doc("Address where to bind network listen sockets on the driver.")
Expand Down
7 changes: 0 additions & 7 deletions core/src/main/scala/org/apache/spark/util/Utils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -936,13 +936,6 @@ private[spark] object Utils extends Logging {
customHostname = Some(hostname)
}

/**
* Get the local machine's FQDN.
*/
def localCanonicalHostName(): String = {
customHostname.getOrElse(localIpAddress.getCanonicalHostName)
}

/**
* Get the local machine's hostname.
*/
Expand Down

0 comments on commit c2f7e47

Please sign in to comment.