Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/649#discussion_r12340622
--- Diff:
yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ExecutorRunnableUtil.scala
---
@@ -56,10 +56,16 @@ trait ExecutorRunnableUtil extends Logging {
JAVA_OPTS += opts
}
- JAVA_OPTS += " -Djava.io.tmpdir=" +
- new Path(Environment.PWD.$(),
YarnConfiguration.DEFAULT_CONTAINER_TEMP_DIR) + " "
+ JAVA_OPTS += "-Djava.io.tmpdir=" +
+ new Path(Environment.PWD.$(),
YarnConfiguration.DEFAULT_CONTAINER_TEMP_DIR)
JAVA_OPTS += ClientBase.getLog4jConfiguration(localResources)
+ // This is needed for the authentication configs because the Executor
has to
+ // know whether to use authentication before it registers with the
Scheduler.
+ for ((k, v) <- sparkConf.getAll.filter{case (k, v) =>
k.startsWith("spark.auth")}) {
+ JAVA_OPTS += "-D" + k + "=" + "\\\"" + v + "\\\""
--- End diff --
Hm, weird. Scala bug? Anyway, no big deal.
---
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.
---