Skip to content

Commit bfc8fe0

Browse files
committed
Remove am-class from doc and fix yarn-alpha
1 parent 607539f commit bfc8fe0

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

docs/running-on-yarn.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ The command to launch the Spark application on the cluster is as follows:
6161
--class <APP_MAIN_CLASS> \
6262
--args <APP_MAIN_ARGUMENTS> \
6363
--num-executors <NUMBER_OF_EXECUTOR_PROCESSES> \
64-
--am-class <ApplicationMaster_CLASS>
6564
--driver-memory <MEMORY_FOR_ApplicationMaster> \
6665
--executor-memory <MEMORY_PER_EXECUTOR> \
6766
--executor-cores <CORES_PER_EXECUTOR> \

yarn/alpha/src/main/scala/org/apache/spark/deploy/yarn/ExecutorLauncher.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class ExecutorLauncher(args: ApplicationMasterArguments, conf: Configuration, sp
228228
val t = new Thread {
229229
override def run() {
230230
while (!driverClosed) {
231-
val missingExecutorCount = args.numExecutors - yarnAllocator.getnumExecutorsRunning
231+
val missingExecutorCount = args.numExecutors - yarnAllocator.getNumExecutorsRunning
232232
if (missingExecutorCount > 0) {
233233
logInfo("Allocating " + missingExecutorCount + " containers to make up for (potentially ?) lost containers")
234234
yarnAllocator.allocateContainers(missingExecutorCount)

yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ trait ClientBase extends Logging {
362362
userArgsToString(args) +
363363
" --executor-memory " + args.executorMemory +
364364
" --executor-cores " + args.executorCores +
365-
" --num-executor " + args.numExecutors +
365+
" --num-executors " + args.numExecutors +
366366
" 1> " + ApplicationConstants.LOG_DIR_EXPANSION_VAR + "/stdout" +
367367
" 2> " + ApplicationConstants.LOG_DIR_EXPANSION_VAR + "/stderr")
368368

0 commit comments

Comments
 (0)