Skip to content

Commit

Permalink
Don't go overboard with escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewor14 committed Jul 25, 2014
1 parent 8e105e1 commit ed01491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/util/Utils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,7 @@ private[spark] object Utils extends Logging {
def sparkJavaOpts(conf: SparkConf, filterKey: (String => Boolean) = _ => true): Seq[String] = {
conf.getAll
.filter { case (k, _) => filterKey(k) }
.map { case (k, v) => "-D" + k + "=\\\"" + v + "\\\"" }
.map { case (k, v) => s"-D$k=$v" }
}

}

0 comments on commit ed01491

Please sign in to comment.