GitHub user sharkdtu opened a pull request:
https://github.com/apache/spark/pull/18352
[SPARK-21138] [YARN] Cannot delete staging dir when the clusters of
"spark.yarn.stagingDir" and "spark.hadoop.fs.defaultFS" are different
## What changes were proposed in this pull request?
When I set different clusters for "spark.hadoop.fs.defaultFS" and
"spark.yarn.stagingDir" as followsï¼
```
spark.hadoop.fs.defaultFS hdfs://tl-nn-tdw.tencent-distribute.com:54310
spark.yarn.stagingDir hdfs://ss-teg-2-v2/tmp/spark
```
The staging dir can not be deleted, it will prompt following message:
```
java.lang.IllegalArgumentException: Wrong FS:
hdfs://ss-teg-2-v2/tmp/spark/.sparkStaging/application_1496819138021_77618,
expected: hdfs://tl-nn-tdw.tencent-distribute.com:54310
```
## How was this patch tested?
Existing tests
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sharkdtu/spark master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/18352.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 #18352
commit b74138e31d3317b34ffb9f13cf7fdd7873edc1a6
Author: sharkdtu
Date: 2017-06-19T11:03:01Z
Cannot delete staging dir when the clusters of spark.yarn.stagingDir and
spark.hadoop.fs.defaultFS are different
---
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