Github user nishkamravi2 commented on a diff in the pull request:
https://github.com/apache/spark/pull/5760#discussion_r29389140
--- Diff: yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala ---
@@ -370,9 +370,11 @@ private[spark] class Client(
try {
hadoopConfStream.setLevel(0)
hadoopConfFiles.foreach { case (name, file) =>
- hadoopConfStream.putNextEntry(new ZipEntry(name))
- Files.copy(file, hadoopConfStream)
- hadoopConfStream.closeEntry()
+ if(file.canRead()) {
--- End diff --
If a file which was not supposed to be read by this user is not copied,
it's expected behavior. I don't think we should log/flag it as a problem.
---
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]