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

Distcp parallel file copy breaks the modification time

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      The commit HADOOP-11794. Enable distcp to copy blocks in parallel. (bf3fb585aaf2b179836e139c041fc87920a3c886) broke the modification time of large files.

       

      In CopyCommitter.java inside concatFileChunks Filesystem.concat is called which changes the modification time therefore the modification times of files copeid by distcp will not match the source files. However this only occurs for large enough files, which are copied by splitting them up by distcp.

      In concatFileChunks before calling concat extract the modification time and apply that to the concatenated result-file after the concat. (probably best after before the rename()).

      Attachments

        Issue Links

          Activity

            People

              amaroti Adam Maroti
              amaroti Adam Maroti
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 50m
                  2h 50m