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

Reuse pre-computed filestatus in Distcp-CopyMapper

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.8.0
    • 2.8.0, 3.0.0-alpha1
    • tools/distcp
    • None

    Description

      https://github.com/apache/hadoop/blob/af942585a108d70e0946f6dd4c465a54d068eabf/hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/mapred/CopyMapper.java#L185

      targetStatus is already computed and it can be reused in checkUpdate() function. This wouldn't be a major issue in NN/HDFS, but in the case of S3 getFileStatus calls can be expensive.

      Attachments

        1. HADOOP-13163.001.patch
          1 kB
          Rajesh Balamohan

        Activity

          People

            rajesh.balamohan Rajesh Balamohan
            rajesh.balamohan Rajesh Balamohan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: