Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reword exception message
  • Loading branch information
kishorvpatil committed Oct 28, 2016
commit 33f95abc8277dc0925a73712bb9d729a5c9c625b
5 changes: 2 additions & 3 deletions yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala
Original file line number Diff line number Diff line change
Expand Up @@ -604,9 +604,8 @@ private[spark] class Client(
}
} else {
if (localizedPath != null) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess here is localizedPath == null ?

throw new IllegalArgumentException(s"Attempt to add ($file) multiple times. " +
"Please check the values of 'spark.yarn.dist.files' and/or " +
"'spark.yarn.dist.archives'.")
throw new IllegalArgumentException(s"Attempt to add ($file) multiple times" +
" to the distributed cache.")
}
}
}
Expand Down