GitHub user zuotingbing opened a pull request:
https://github.com/apache/spark/pull/16439
[SPARK-19026]SPARK_LOCAL_DIRS(multiple directories on different disks)
cannot be deleted
JIRA Issue: https://issues.apache.org/jira/browse/SPARK-19026
SPARK_LOCAL_DIRS (Standalone) can be a comma-separated list of multiple
directories on different disks, e.g. SPARK_LOCAL_DIRS=/dir1,/dir2,/dir3, if
there is a IOExecption when create sub directory on dir3 , then the sub
directory which have been created successfully on dir1 and dir2 cannot be
deleted anymore when the application finishes.
So we should catch the IOExecption at Utils.createDirectory , otherwise
the variable "appDirectories(appId)" which the function maybeCleanupApplication
calls will not be set . If the number of folders "executor-**" > 32k(ext3) then
we cannot create any executor on this worker node.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zuotingbing/spark master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/16439.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 #16439
----
commit e4fe18e2fb894c6e41d49e620d342d6be475b5ed
Author: zuotingbing <[email protected]>
Date: 2016-12-30T02:53:13Z
local directories cannot be cleanuped when create directory of executor-***
throws IOException
----
---
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]