GitHub user gzm55 opened a pull request: https://github.com/apache/spark/pull/154
remove staging dir when app quiting for yarn-cluster mode In yarn-cluster, the driver is actually running as 'yarn' user. When posting jobs from other users, we need give stagingDir a full path, so the driver could remove the correct directory if needed. You can merge this pull request into a Git repository by running: $ git pull https://github.com/gzm55/spark work/rm-yarn-staging-dir Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/154.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #154 ---- commit eaad42d434792639424292fdc17f07eba5d3646e Author: James Z.M. Gao <gao...@mediav.com> Date: 2014-03-11T03:07:28Z remove staging dir when app quiting for yarn-cluster mode In yarn-cluster, the driver is actually running as 'yarn' user. When posting jobs from other users, we need give stagingDir a full path, so the driver could remove the correct directory if needed. ---- --- 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. ---