Github user tgravescs commented on a diff in the pull request:
https://github.com/apache/spark/pull/15627#discussion_r85552081
--- Diff: yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala ---
@@ -598,8 +598,12 @@ private[spark] class Client(
).foreach { case (flist, resType, addToClasspath) =>
flist.foreach { file =>
val (_, localizedPath) = distribute(file, resType = resType)
- if (addToClasspath && localizedPath != null) {
- cachedSecondaryJarLinks += localizedPath
+ if (addToClasspath) {
+ if (localizedPath != null) {
+ cachedSecondaryJarLinks += localizedPath
+ }
+ } else {
+ require(localizedPath !=null)
--- End diff --
Lets change the error to illegal argument exception.
Also lets comment this to indicate jars are ok due to spark 2.0 jar
install, everything else shouldn't have multiple of same jar/file/archive.
---
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]