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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.3.0
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: