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

copyToLocal cast exception for S3 filesystem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • 0.12.0, 0.12.1, 0.12.2, 0.12.3
    • 0.23.0
    • fs
    • None

    Description

      The copyToLocal method in FsShell.java class does the following casting:

      ((DistributedFileSystem)fs).copyToLocalFile(srcs[i], dst, copyCrc);

      which in the case of S3 filesystem, this returns ClassCastException. This can be fixed by replacing the above line by:

      fs.copyToLocalFile(srcs[i], dst);

      Which of course does not check for the CRC.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mike.smith Mike Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: