devaraj-kavali commented on a change in pull request #19616:
[SPARK-22404][YARN] Provide an option to use unmanaged AM in yarn-client mode
URL: https://github.com/apache/spark/pull/19616#discussion_r243354980
##########
File path:
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala
##########
@@ -617,7 +625,14 @@ private[spark] class ApplicationMaster(args:
ApplicationMasterArguments) extends
try {
val preserveFiles = sparkConf.get(PRESERVE_STAGING_FILES)
if (!preserveFiles) {
- stagingDirPath = new Path(System.getenv("SPARK_YARN_STAGING_DIR"))
+ var stagingDir = System.getenv("SPARK_YARN_STAGING_DIR")
+ if (stagingDir == null) {
+ val appStagingBaseDir = sparkConf.get(STAGING_DIR).map { new Path(_)
}
Review comment:
Made the change to pass the stagingDir from Client.scala
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]