Skip to content

Commit 62888a4

Browse files
witgosrowen
authored andcommitted
[SPARK-7162] [YARN] Launcher error in yarn-client
jira: https://issues.apache.org/jira/browse/SPARK-7162 Author: GuoQiang Li <[email protected]> Closes apache#5716 from witgo/SPARK-7162 and squashes the following commits: b64564c [GuoQiang Li] Launcher error in yarn-client
1 parent ab5adb7 commit 62888a4

File tree

1 file changed

+1
-1
lines changed
  • yarn/src/main/scala/org/apache/spark/deploy/yarn

1 file changed

+1
-1
lines changed

yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ private[spark] class Client(
354354
val dir = new File(path)
355355
if (dir.isDirectory()) {
356356
dir.listFiles().foreach { file =>
357-
if (!hadoopConfFiles.contains(file.getName())) {
357+
if (file.isFile && !hadoopConfFiles.contains(file.getName())) {
358358
hadoopConfFiles(file.getName()) = file
359359
}
360360
}

0 commit comments

Comments
 (0)