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

Reduce number of listStatus operation in distcp buildListing()

    XMLWordPrintableJSON

Details

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

    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-liststatus2.patch
          4 kB
          Zoran Dimitrijevic
        2. distcp-liststatus.patch
          6 kB
          Zoran Dimitrijevic

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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