Skip to content

[SPARK-29472][YARN] Mechanism for Excluding Jars at Launch for YARN#26122

Closed
modi95 wants to merge 2 commits intoapache:masterfrom
modi95:yarn-jars
Closed

[SPARK-29472][YARN] Mechanism for Excluding Jars at Launch for YARN#26122
modi95 wants to merge 2 commits intoapache:masterfrom
modi95:yarn-jars

Conversation

@modi95
Copy link

@modi95 modi95 commented Oct 15, 2019

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 ./jars directory) so that these jars are conditionally added only if they do not match a certain regex. This regex can be provided by the user as spark.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?

  • Manual Testinng
  • Unit Tests
  • Is currently in production at Uber.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@vanzin
Copy link
Contributor

vanzin commented Oct 24, 2019

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.)

@vanzin vanzin closed this Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments