Github user jerryshao commented on the issue: https://github.com/apache/spark/pull/18124 I'm not sure how this could be happened, "SPARK_YARN_STAGING_DIR" is a Spark internal environment variable which should be empty, unless you deliberately unset it. In the JIRA you mentioned you directly running `ApplicationMaster`, so that you met this issue, I'm not sure why you need to directly call `ApplicationMaster`? BTW seems you submitted a PR against branch 2.1, why not against master branch?
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org