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

Reduce number of listStatus operation in distcp buildListing()

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha1
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: tools/distcp
    • Labels:
      None
    • Target Version/s:

      Description

      Distcp was taking long time in copyListing.buildListing() for large source trees (I was using source of 1.5M files in a tree of about 50K directories). For input at s3 buildListing was taking more than one hour. I've noticed a performance bug in the current code which does listStatus twice for each directory which doubles number of RPCs in some cases (if most directories do not contain >1000 files).

        Attachments

        1. distcp-liststatus.patch
          6 kB
          Zoran Dimitrijevic
        2. distcp-liststatus2.patch
          4 kB
          Zoran Dimitrijevic

          Activity

            People

            • Assignee:
              3opan Zoran Dimitrijevic
              Reporter:
              3opan Zoran Dimitrijevic
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified