Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.22.0
-
None
-
Reviewed
-
Fixes bugs in linux task controller and TaskRunner.setupWorkDir() related to handling of symlinks.
Description
With JVM reuse, TaskRunner.setupWorkDir() lists the contents of workDir and does a fs.delete on each path listed. If the listed file is a symlink to directory, it will delete the contents of those linked directories. This would delete files from distributed cache and jars directory,if mapred.create.symlink is true.
Changing ownership/permissions of symlinks through ENABLE_TASK_FOR_CLEANUP would change ownership/permissions of underlying files.
This is observed by Karam while running streaming jobs with DistributedCache and jvm reuse.
Attachments
Attachments
Issue Links
- is blocked by
-
HADOOP-6531 add FileUtil.fullyDeleteContents(dir) api to delete contents of a directory
- Closed