Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

package org.apache.spark.deploy.yarn

import org.apache.spark.util.IntParam
import org.apache.spark.util.{MemoryParam, IntParam}
import collection.mutable.ArrayBuffer

class ApplicationMasterArguments(val args: Array[String]) {
Expand Down Expand Up @@ -55,7 +55,7 @@ class ApplicationMasterArguments(val args: Array[String]) {
numExecutors = value
args = tail

case ("--worker-memory" | "--executor-memory") :: IntParam(value) :: tail =>
case ("--worker-memory" | "--executor-memory") :: MemoryParam(value) :: tail =>
executorMemory = value
args = tail

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ private[spark] trait ClientBase extends Logging {
val amArgs =
Seq(amClass) ++ userClass ++ userJar ++ userArgs ++
Seq(
"--executor-memory", args.executorMemory.toString,
"--executor-memory", args.executorMemory.toString + "m",
"--executor-cores", args.executorCores.toString,
"--num-executors ", args.numExecutors.toString)

Expand Down