[SPARK-7162] [YARN] Launcher error in yarn-client

jira: https://issues.apache.org/jira/browse/SPARK-7162

Author: GuoQiang Li <witgo@qq.com>

Closes #5716 from witgo/SPARK-7162 and squashes the following commits:

b64564c [GuoQiang Li] Launcher error in yarn-client
This commit is contained in:
GuoQiang Li 2015-04-27 19:52:41 -04:00 committed by Sean Owen
parent ab5adb7a97
commit 62888a4ded

View file

@ -354,7 +354,7 @@ private[spark] class Client(
val dir = new File(path) val dir = new File(path)
if (dir.isDirectory()) { if (dir.isDirectory()) {
dir.listFiles().foreach { file => dir.listFiles().foreach { file =>
if (!hadoopConfFiles.contains(file.getName())) { if (file.isFile && !hadoopConfFiles.contains(file.getName())) {
hadoopConfFiles(file.getName()) = file hadoopConfFiles(file.getName()) = file
} }
} }