Skip to content

Commit

Permalink
Remove am-class from doc and fix yarn-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
sryza committed Mar 13, 2014
1 parent 607539f commit bfc8fe0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion docs/running-on-yarn.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ The command to launch the Spark application on the cluster is as follows:
--class <APP_MAIN_CLASS> \
--args <APP_MAIN_ARGUMENTS> \
--num-executors <NUMBER_OF_EXECUTOR_PROCESSES> \
--am-class <ApplicationMaster_CLASS>
--driver-memory <MEMORY_FOR_ApplicationMaster> \
--executor-memory <MEMORY_PER_EXECUTOR> \
--executor-cores <CORES_PER_EXECUTOR> \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class ExecutorLauncher(args: ApplicationMasterArguments, conf: Configuration, sp
val t = new Thread {
override def run() {
while (!driverClosed) {
val missingExecutorCount = args.numExecutors - yarnAllocator.getnumExecutorsRunning
val missingExecutorCount = args.numExecutors - yarnAllocator.getNumExecutorsRunning
if (missingExecutorCount > 0) {
logInfo("Allocating " + missingExecutorCount + " containers to make up for (potentially ?) lost containers")
yarnAllocator.allocateContainers(missingExecutorCount)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ trait ClientBase extends Logging {
userArgsToString(args) +
" --executor-memory " + args.executorMemory +
" --executor-cores " + args.executorCores +
" --num-executor " + args.numExecutors +
" --num-executors " + args.numExecutors +
" 1> " + ApplicationConstants.LOG_DIR_EXPANSION_VAR + "/stdout" +
" 2> " + ApplicationConstants.LOG_DIR_EXPANSION_VAR + "/stderr")

Expand Down

0 comments on commit bfc8fe0

Please sign in to comment.