Github user tgravescs commented on a diff in the pull request:
https://github.com/apache/spark/pull/12115#discussion_r58266805
--- Diff: yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala ---
@@ -833,20 +843,21 @@ private[spark] class Client(
if (sparkConf.get(AM_JAVA_OPTIONS).isDefined) {
logWarning(s"${AM_JAVA_OPTIONS.key} will not take effect in
cluster mode")
}
+
} else {
// Validate and include yarn am specific java options in yarn-client
mode.
sparkConf.get(AM_JAVA_OPTIONS).foreach { opts =>
if (opts.contains("-Dspark")) {
- val msg = s"$${amJavaOptions.key} is not allowed to set Spark
options (was '$opts'). "
+ val msg = s"spark.yarn.am.extraJavaOptions is not allowed to set
Spark options (was '$opts')."
--- End diff --
use the AM_JAVA_OPTIONS.key here
---
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]