We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91da0bb commit deb6a4cCopy full SHA for deb6a4c
1 file changed
core/src/main/scala/org/apache/spark/deploy/worker/CommandUtils.scala
@@ -48,12 +48,7 @@ object CommandUtils extends Logging {
48
def buildJavaOpts(command: Command, memory: Int, sparkHome: String): Seq[String] = {
49
val memoryOpts = Seq(s"-Xms${memory}M", s"-Xmx${memory}M")
50
// Note, this will coalesce multiple options into a single command component
51
- val extraOpts = command.extraJavaOptions match {
52
- case Some(opts) =>
53
- Utils.splitCommandString(opts)
54
- case _ =>
55
- Seq()
56
- }
+ val extraOpts = command.extraJavaOptions.map(Utils.splitCommandString).getOrElse(Seq())
57
58
val libraryOpts =
59
if (command.libraryPathEntries.size > 0) {
0 commit comments