cxzl25 opened a new pull request, #42313:
URL: https://github.com/apache/spark/pull/42313
### What changes were proposed in this pull request?
### Why are the changes needed?
Command
```bash
./bin/spark-shell --conf spark.executor.extraJavaOptions='-Dspark.foo=bar'
```
Error
```
spark.executor.extraJavaOptions is not allowed to set Spark options (was
'-Dspark.foo=bar'). Set them directly on a SparkConf or in a properties file
when using ./bin/spark-submit.
```
Command
```bash
./bin/spark-shell --conf spark.executor.defaultJavaOptions='-Dspark.foo=bar'
```
Start up normally.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
local test
```
./bin/spark-shell --conf spark.executor.defaultJavaOptions='-Dspark.foo=bar'
```
```
spark.executor.defaultJavaOptions is not allowed to set Spark options (was
'-Dspark.foo=bar'). Set them directly on a SparkConf or in a properties file
when using ./bin/spark-submit.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]