Skip to content
Snippets Groups Projects
Commit 00f4e3ff authored by mbautin's avatar mbautin
Browse files

Addressing Matei's comment: SPARK_LOCAL_IP environment variable

parent 1f5a7e0e
No related branches found
No related tags found
No related merge requests found
...@@ -200,7 +200,7 @@ private object Utils extends Logging { ...@@ -200,7 +200,7 @@ private object Utils extends Logging {
* Get the local host's IP address in dotted-quad format (e.g. 1.2.3.4). * Get the local host's IP address in dotted-quad format (e.g. 1.2.3.4).
*/ */
def localIpAddress(): String = { def localIpAddress(): String = {
val defaultIpOverride = System.getenv("SPARK_DEFAULT_LOCAL_IP") val defaultIpOverride = System.getenv("SPARK_LOCAL_IP")
if (defaultIpOverride != null) if (defaultIpOverride != null)
defaultIpOverride defaultIpOverride
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment