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

Fixed a bug where isLocal was set to false when using local[K]

parent 4a138403
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ class SparkContext(
System.setProperty("spark.master.port", "0")
}
private val isLocal = (master == "local" || master.startsWith("local\\["))
private val isLocal = (master == "local" || master.startsWith("local["))
// Create the Spark execution environment (cache, map output tracker, etc)
val env = SparkEnv.createFromSystemProperties(
......
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