Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-5825

Use FileUtils.copyFile() to implement DFSTestUtils.copyFile()

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.0
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      DFSTestUtils.copyFile() is implemented by copying data through FileInputStream / FileOutputStream. Apache Common IO provides FileUtils.copyFile(). It uses FileChannel which is more efficient.

      This jira proposes to implement DFSTestUtils.copyFile() using FileUtils.copyFile().

        Attachments

        1. HDFS-5825.000.patch
          2 kB
          Haohui Mai

          Activity

            People

            • Assignee:
              wheat9 Haohui Mai
              Reporter:
              wheat9 Haohui Mai
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: