GitHub user jerryshao opened a pull request:
https://github.com/apache/spark/pull/18602
[SPARK-21377][YARN] Add a new configuration to extend AM classpath in yarn
client mode
## What changes were proposed in this pull request?
This PR propose a new configuration "spark.yarn.am.extraClassPath" to
extend AM classpath in yarn client mode. The specific scenario is that we have
custom `ServiceCredentialProvider` which will be loaded in AM, and this
provider requires its additional dependencies to be added in AM classpath.
Using "spark.driver.extraClassPath" (the current code) is not so proper in
yarn client mode and if dependency paths are different for driver and AM node,
then it is impossible to use this configuration. So instead we add a new
configuration to extend AM classpath in yarn client mode.
## How was this patch tested?
UT added and manual verification on local cluster.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jerryshao/apache-spark SPARK-21377
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/18602.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #18602
----
commit 6f9135645cd767e9d69d98157189c2e7ba08a5cc
Author: jerryshao <[email protected]>
Date: 2017-07-11T20:52:22Z
Add a new configuration to extend AM Classpath when running in yarn client
mode
Change-Id: I2d9e1c3ab65b648bc1ad321268394e0d15b1eb3f
----
---
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]