Skip to content
Snippets Groups Projects
Commit 816d4e58 authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Pass local IP address instead of hostname in spark.master.host. Fixes #117.

parent 335a6036
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ class SparkContext(
// Set Spark master host and port system properties
if (System.getProperty("spark.master.host") == null) {
System.setProperty("spark.master.host", Utils.localHostName)
System.setProperty("spark.master.host", Utils.localIpAddress)
}
if (System.getProperty("spark.master.port") == null) {
System.setProperty("spark.master.port", "7077")
......
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