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

Distcp's use of pread is slowing it down.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.5.0
    • 3.1.0
    • tools/distcp
    • None

    Description

      Distcp currently uses positioned-reads (in RetriableFileCopyCommand#copyBytes) when the source offset is > 0. This results in unnecessary overheads (new BlockReader being created on the client-side, multiple readBlock() calls to the Datanodes, each of which requires the creation of a BlockSender and an inputstream to the ReplicaInfo).

      Attachments

        1. HADOOP-15292.000.patch
          4 kB
          Virajith Jalaparti
        2. HADOOP-15292.001.patch
          8 kB
          Virajith Jalaparti
        3. HADOOP-15292.002.patch
          8 kB
          Virajith Jalaparti

        Issue Links

          Activity

            People

              virajith Virajith Jalaparti
              virajith Virajith Jalaparti
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: