-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-12666][CORE] SparkSubmit packages fix for when 'default' conf doesn't exist in dependent module #13428
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
Changes from 1 commit
27d0c21
ece86f1
b87e0c9
df1ac92
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
…e all transitive dependencies
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -891,10 +891,12 @@ private[spark] object SparkSubmitUtils { | |
| val localIvy = new FileSystemResolver | ||
| val localIvyRoot = new File(ivySettings.getDefaultIvyUserDir, "local") | ||
| localIvy.setLocal(true) | ||
| localIvy.setRepository(new FileRepository(localIvyRoot)) | ||
| val ivyPattern = Seq("[organisation]", "[module]", "[revision]", "[type]s", | ||
| "[artifact](-[classifier]).[ext]").mkString(File.separator) | ||
| val ivyPattern = Seq("[organisation]", "[module]", "[revision]", "ivys", | ||
|
||
| "ivy.xml").mkString(File.separator) | ||
| localIvy.addIvyPattern(localIvyRoot.getAbsolutePath + File.separator + ivyPattern) | ||
| val artifactPattern = Seq("[organisation]", "[module]", "[revision]", "[type]s", | ||
| "[artifact](-[classifier]).[ext]").mkString(File.separator) | ||
| localIvy.addArtifactPattern(localIvyRoot.getAbsolutePath + File.separator + artifactPattern) | ||
|
||
| localIvy.setName("local-ivy-cache") | ||
| cr.add(localIvy) | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't we need to keep this for the local IvyCache?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's redundant because the filesystem patterns defined below use an absolute path (with the
localIvyRoot) and the resolver then ignores the repository root set here. Only if it determines the patterns are using relative paths it will then prefix them with the root. It doesn't hurt anything to leave it in though, if you prefer.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything else being equal, I'm in favor of leaving this. Maybe it's redundant but it might prevent bugs in case someone else comes along and tries to remove the use of absolute paths below (or forgets to use an absolute path in new code).