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

DistCp to support checksum validation when copy blocks in parallel

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.0, 2.9.2, 3.0.3, 3.1.2
    • Fix Version/s: 3.3.0, 3.2.1, 3.1.3
    • Component/s: tools/distcp
    • Labels:
      None

      Description

      Copying blocks in parallel (enabled when blocks per chunk > 0) is a great DistCp improvement that can hugely speed up copying big files. 

      But its checksum validation is skipped, e.g. in `RetriableFileCopyCommand.java`

       

      if (!source.isSplit()) {
        compareCheckSums(sourceFS, source.getPath(), sourceChecksum,
            targetFS, targetPath);
      }
      

      and this could result in checksum/data mismatch without notifying developers/users (e.g. HADOOP-16049).

      I'd like to provide a patch to add the checksum validation.

       

        Attachments

        1. HADOOP-16158.branch-3.1.patch
          27 kB
          Wei-Chiu Chuang

          Issue Links

            Activity

              People

              • Assignee:
                kai33 Kai Xie
                Reporter:
                kai33 Kai Xie
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: