Github user nezihyigitbasi commented on a diff in the pull request:
https://github.com/apache/spark/pull/13527#discussion_r65945574
--- Diff: core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala ---
@@ -444,6 +444,7 @@ object SparkSubmit {
OptionAssigner(args.deployMode, ALL_CLUSTER_MGRS, ALL_DEPLOY_MODES,
sysProp = "spark.submit.deployMode"),
OptionAssigner(args.name, ALL_CLUSTER_MGRS, ALL_DEPLOY_MODES,
sysProp = "spark.app.name"),
+ OptionAssigner(args.jars, ALL_CLUSTER_MGRS, CLIENT, sysProp =
"spark.jars"),
--- End diff --
Thanks @vanzin @jerryshao for your input, some follow up questions:
- How should Spark behave when a user both sets `spark.jars` and
`spark.yarn.dist.jars`? Do we want to set union them? (the comment on this
method says "Set JAR files to distribute to the cluster")
- In `SparkConf` there is a `setJars()` method that sets `spark.jars`,
should this method also set `spark.yarn.dist.jars` if we are in YARN mode?
- Does implementing option 2 resolve the issue completely? Because the repl
main class needs the `spark.jar` system property to be set. Shouldn't we also
set that system property somewhere?
---
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]