dongjoon-hyun commented on code in PR #45237:
URL: https://github.com/apache/spark/pull/45237#discussion_r1501679826
##########
launcher/src/main/java/org/apache/spark/launcher/SparkSubmitCommandBuilder.java:
##########
@@ -498,6 +504,8 @@ protected boolean handle(String opt, String value) {
case DRIVER_MEMORY -> conf.put(SparkLauncher.DRIVER_MEMORY, value);
case DRIVER_JAVA_OPTIONS ->
conf.put(SparkLauncher.DRIVER_EXTRA_JAVA_OPTIONS, value);
case DRIVER_LIBRARY_PATH ->
conf.put(SparkLauncher.DRIVER_EXTRA_LIBRARY_PATH, value);
+ case DRIVER_DEFAULT_CLASS_PATH ->
+ conf.put(SparkLauncher.DRIVER_DEFAULT_EXTRA_CLASS_PATH, value);
Review Comment:
To @viirya ,
- In general, `bin/spark-submit ... -c spark.driver.defaultExtraClassPath=""
-c spark.executor.defaultExtraClassPath=""` is a way to launch without
hive-jackson dependency because `hive-jackson/*` are provided by those
configuration. This works for the drivers of `cluster` mode submission and
executors of both `client` and `cluster` submission modes always.
- Apache Spark already provides `--driver-class-path` is used only for the
cases where we cannot use `spark.driver.extraClassPath`. In this case,
`spark.driver.defaultExtraClassPath` is also not applicable. So, this PR adds `
--driver-default-class-path ""` in the same way.
--
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]