Github user ConeyLiu commented on the issue:
https://github.com/apache/spark/pull/17859
Hi @srowen, the follow is the test result, the submit script:
`./spark-submit --class org.apache.spark.examples.SparkPi --master yarn
--deploy-mode client --verbose
../examples/target/scala-2.11/jars/spark-examples_2.11-2.2.0-SNAPS
HOT.jar 10`:
before:
```
Parsed arguments:
master yarn
deployMode client
executorMemory 1G
executorCores 1
totalExecutorCores null
propertiesFile null
driverMemory null
driverCores null
driverExtraClassPath null
driverExtraLibraryPath null
driverExtraJavaOptions null
supervise false
queue null
numExecutors null
files null
pyFiles null
archives null
mainClass org.apache.spark.examples.SparkPi
primaryResource
file:/Users/lxy/git_repository/spark/bin/../examples/target/scala-2.11/jars/spark-examples_2.11-2.2.0-SNAPSHOT.jar
name org.apache.spark.examples.SparkPi
childArgs [10]
jars null
packages null
packagesExclusions null
repositories null
verbose true
```
after
```
Parsed arguments:
master yarn
deployMode client
executorMemory 1G
executorCores 1
totalExecutorCores null
propertiesFile null
driverMemory null
driverCores null
driverExtraClassPath null
driverExtraLibraryPath null
driverExtraJavaOptions null
supervise false
queue null
numExecutors 2
files null
pyFiles null
archives null
mainClass org.apache.spark.examples.SparkPi
primaryResource
file:/Users/lxy/git_repository/spark/bin/../examples/target/scala-2.11/jars/spark-examples_2.11-2.2.0-SNAPSHOT.jar
name org.apache.spark.examples.SparkPi
childArgs [10]
jars null
packages null
packagesExclusions null
repositories null
verbose true
```
And also this parameter doesn't affect other `ClusterManager`. You can see
the follow code:
[L458](https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala#L458)
---
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.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]