Github user mateiz commented on a diff in the pull request:
https://github.com/apache/spark/pull/547#discussion_r12008297
--- Diff:
core/src/main/scala/org/apache/spark/deploy/worker/CommandUtils.scala ---
@@ -48,7 +48,13 @@ object CommandUtils extends Logging {
def buildJavaOpts(command: Command, memory: Int, sparkHome: String):
Seq[String] = {
val memoryOpts = Seq(s"-Xms${memory}M", s"-Xmx${memory}M")
// Note, this will coalesce multiple options into a single command
component
- val extraOpts = command.extraJavaOptions.toSeq
+ val extraOpts = command.extraJavaOptions match {
+ case Some(opts) =>
+ opts.split("\\s+").toSeq
--- End diff --
Use Utils.splitCommandString instead of this, in case people pass in stuff
with quotes.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---