Skip to content

Commit 76eaeb4

Browse files
SaintBacchusJoshRosen
authored andcommitted
Move a bracket in validateSettings of SparkConf
Move a bracket in validateSettings of SparkConf Author: hzw19900416 <carlmartinmax@gmail.com> Closes #2012 from hzw19900416/codereading and squashes the following commits: e717fb6 [hzw19900416] Move a bracket in validateSettings of SparkConf
1 parent 94053a7 commit 76eaeb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class SparkConf(loadDefaults: Boolean) extends Cloneable with Logging {
227227
// Validate spark.executor.extraJavaOptions
228228
settings.get(executorOptsKey).map { javaOpts =>
229229
if (javaOpts.contains("-Dspark")) {
230-
val msg = s"$executorOptsKey is not allowed to set Spark options (was '$javaOpts)'. " +
230+
val msg = s"$executorOptsKey is not allowed to set Spark options (was '$javaOpts'). " +
231231
"Set them directly on a SparkConf or in a properties file when using ./bin/spark-submit."
232232
throw new Exception(msg)
233233
}

0 commit comments

Comments
 (0)