-
- Downloads
[SPARK-9825][YARN] Do not overwrite final Hadoop config entries.
When localizing the gateway config files in a YARN application, avoid overwriting final configs by distributing the gateway files to a separate directory, and explicitly loading them into the Hadoop config, instead of placing those files before the cluster's files in the classpath. This is done by saving the gateway's config to a separate XML file distributed with the rest of the Spark app's config, and loading that file when creating a new config through `YarnSparkHadoopUtil`. Tested with existing unit tests, and by verifying the behavior in a YARN cluster (final values are not overridden, non-final values are). Author: Marcelo Vanzin <vanzin@cloudera.com> Closes #18370 from vanzin/SPARK-9825.
Showing
- resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala 43 additions, 16 deletions.../src/main/scala/org/apache/spark/deploy/yarn/Client.scala
- resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/YarnSparkHadoopUtil.scala 5 additions, 2 deletions...la/org/apache/spark/deploy/yarn/YarnSparkHadoopUtil.scala
Please register or sign in to comment