Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-21377][YARN] Add a new configuration to extend AM classpath in yarn client mode #18602

Closed
wants to merge 1 commit into from

Conversation

jerryshao
Copy link
Contributor

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.

…lient mode

Change-Id: I2d9e1c3ab65b648bc1ad321268394e0d15b1eb3f
@SparkQA
Copy link

SparkQA commented Jul 11, 2017

Test build #79541 has finished for PR 18602 at commit 6f91356.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@jerryshao
Copy link
Contributor Author

CC @vanzin @tgravescs would you please help to review? Thanks!

@vanzin
Copy link
Contributor

vanzin commented Jul 11, 2017

I commented on the bug.

@jerryshao
Copy link
Contributor Author

Thanks @vanzin , based on the comment of JIRA, I will try another approach, so closing it for now.

@jerryshao jerryshao closed this Jul 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants