Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
1-win, 2.1.0-beta, 1.3.0, 3.0.0-alpha1
-
None
-
None
Description
POSIX rename semantics state that renaming a source directory to an existing destination directory that is empty will act as a full replacement of that existing destination. RawLocalFileSystem#rename calls Java's File#renameTo, which provides these semantics on most platforms. On some platforms (notably Windows), File#renameTo does not provide this behavior. This causes problems for MapReduce and other downstream components like Hive, HCatalog, and Sqoop that depend on the replacement behavior.
Attachments
Issue Links
- duplicates
-
HADOOP-9507 LocalFileSystem rename() is broken in some cases when destination exists
- Closed