Github user tgravescs commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11603#discussion_r55525146
  
    --- Diff: core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala ---
    @@ -452,27 +452,14 @@ object SparkSubmit {
           OptionAssigner(args.driverExtraLibraryPath, ALL_CLUSTER_MGRS, 
ALL_DEPLOY_MODES,
             sysProp = "spark.driver.extraLibraryPath"),
     
    -      // Yarn client only
    -      OptionAssigner(args.queue, YARN, CLIENT, sysProp = 
"spark.yarn.queue"),
    +      // Yarn only
    +      OptionAssigner(args.queue, YARN, ALL_DEPLOY_MODES, sysProp = 
"spark.yarn.queue"),
           OptionAssigner(args.numExecutors, YARN, ALL_DEPLOY_MODES,
             sysProp = "spark.executor.instances"),
    -      OptionAssigner(args.files, YARN, CLIENT, sysProp = 
"spark.yarn.dist.files"),
    -      OptionAssigner(args.archives, YARN, CLIENT, sysProp = 
"spark.yarn.dist.archives"),
    -      OptionAssigner(args.principal, YARN, CLIENT, sysProp = 
"spark.yarn.principal"),
    -      OptionAssigner(args.keytab, YARN, CLIENT, sysProp = 
"spark.yarn.keytab"),
    -
    -      // Yarn cluster only
    -      OptionAssigner(args.name, YARN, CLUSTER, clOption = "--name"),
    -      OptionAssigner(args.driverMemory, YARN, CLUSTER, clOption = 
"--driver-memory"),
    -      OptionAssigner(args.driverCores, YARN, CLUSTER, clOption = 
"--driver-cores"),
    -      OptionAssigner(args.queue, YARN, CLUSTER, clOption = "--queue"),
    -      OptionAssigner(args.executorMemory, YARN, CLUSTER, clOption = 
"--executor-memory"),
    -      OptionAssigner(args.executorCores, YARN, CLUSTER, clOption = 
"--executor-cores"),
    -      OptionAssigner(args.files, YARN, CLUSTER, clOption = "--files"),
    -      OptionAssigner(args.archives, YARN, CLUSTER, clOption = 
"--archives"),
    -      OptionAssigner(args.jars, YARN, CLUSTER, clOption = "--addJars"),
    --- End diff --
    
     Removing this and letting it use spark.jars uses the spark addJars method 
of distributing jars instead of using the yarn distributed cache like it did 
before.  I'm not sure I want to change that, I would rather keep as much as 
possible consistent using the YARN distributed cache unless we have a reason to 
change.  



---
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]

Reply via email to