Skip to content

Commit d6b0afd

Browse files
committed
Small chang to existing constructor
1 parent 403ba52 commit d6b0afd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/scala/org/apache/spark/SparkContext.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,11 @@ class SparkContext(config: SparkConf)
104104
appName: String,
105105
sparkHome: String = null,
106106
jars: Seq[String] = Nil,
107-
environment: Map[String, String] = Map()) =
107+
environment: Map[String, String] = Map(),
108+
preferredNodeLocationData: Map[String, Set[SplitInfo]] = Map()) =
108109
{
109110
this(SparkContext.updatedConf(new SparkConf(), master, appName, sparkHome, jars, environment))
111+
this.preferredNodeLocationData = preferredNodeLocationData
110112
}
111113

112114
/**

0 commit comments

Comments
 (0)