[SPARK-29472][YARN] Mechanism for Excluding Jars at Launch for YARN#26122
Closed
modi95 wants to merge 2 commits intoapache:masterfrom
Closed
[SPARK-29472][YARN] Mechanism for Excluding Jars at Launch for YARN#26122modi95 wants to merge 2 commits intoapache:masterfrom
modi95 wants to merge 2 commits intoapache:masterfrom
Conversation
Merge with OSS Spark
|
Can one of the admins verify this patch? |
Contributor
|
See comment on the bug for how you can do what you want with existing Spark features. I'm actually against adding this new option, so just closing this. (If you really want to exclude jars, create a zip file with just the jars you want, and tell Spark to use that. See, another way to do what you want without changing Spark.) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This PR addresses https://issues.apache.org/jira/browse/SPARK-29472. It changes the part of the YARN Client class that packages the spark build's jar (in the
./jarsdirectory) so that these jars are conditionally added only if they do not match a certain regex. This regex can be provided by the user asspark.yarn.jars.exclusionRegex.Why are the changes needed?
Explained in https://issues.apache.org/jira/browse/SPARK-29472.
Does this PR introduce any user-facing change?
This PR adds a conf to spark -
spark.yarn.jars.exclusionRegex. No other output is changed.How was this patch tested?