Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9767

RawLocalFileSystem#rename does not correctly enforce replacement of empty destination directory on all platforms

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1-win, 2.1.0-beta, 1.3.0, 3.0.0-alpha1
    • None
    • fs
    • 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

          Activity

            People

              cnauroth Chris Nauroth
              cnauroth Chris Nauroth
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: