Github user tgravescs commented on a diff in the pull request:
https://github.com/apache/spark/pull/1574#discussion_r17480411
--- Diff:
yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala ---
@@ -224,6 +225,17 @@ trait ClientBase extends Logging {
}
}
+ val hadoopConfXml = File.createTempFile("spark",null)
+ yarnConf.writeXml(new FileOutputStream(hadoopConfXml))
+ distCacheMgr.addResource(fs, conf,
+ copyRemoteFile(dst,
+ new Path(hadoopConfXml.toURI()), replication),
+ localResources,
+ LocalResourceType.FILE, "job.xml",
--- End diff --
I agree job.xml isn't great name. To keep with the format of other things
in the staging dir, perhaps something in the format of __appHadoopConf__.xml.
Note I think it would be better to have static name rather then random in case
you are trying to debug or if we eventually want to save it off to like the
history server.
---
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]