Skip to content

Commit

Permalink
Fix driver lost --num-executors option in yarn-cluster mode
Browse files Browse the repository at this point in the history
  • Loading branch information
li-zhihui committed Jun 19, 2014
1 parent e7b6272 commit 812c33c
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -164,6 +164,7 @@ class ApplicationMaster(args: ApplicationMasterArguments, conf: Configuration,

private def startUserClass(): Thread = {
logInfo("Starting the user JAR in a separate Thread")
System.setProperty("spark.executor.instances",args.numExecutors.toString)
val mainMethod = Class.forName(
args.userClass,
false,
Expand Down

0 comments on commit 812c33c

Please sign in to comment.