Github user witgo commented on a diff in the pull request:
https://github.com/apache/spark/pull/969#discussion_r13777641
--- Diff:
yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientArguments.scala
---
@@ -45,6 +44,12 @@ class ClientArguments(val args: Array[String], val
sparkConf: SparkConf) {
parseArgs(args.toList)
+ files =
Option(files).getOrElse(sparkConf.getOption("spark.yarn.dist.files").orNull)
+ files = Option(files).map(p => Utils.resolveURIs(p)).orNull
--- End diff --
files =
Option(files).getOrElse(sparkConf.getOption("spark.yarn.dist.files").
map(p => Utils.resolveURIs(p)).orNull)
As you say the code should look like this
```scala
files =
Option(files).getOrElse(sparkConf.getOption("spark.yarn.dist.files").
map(p => Utils.resolveURIs(p)).orNull)
archives =
Option(archives).getOrElse(sparkConf.getOption("spark.yarn.dist.archives").
map(p => Utils.resolveURIs(p)).orNull)
```
`spark.yarn.dist.*` and `--archives/--files` behavior is different, this
is a bit strange.
---
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.
---