[ https://issues.apache.org/jira/browse/HADOOP-1303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Harsh J resolved HADOOP-1303. ----------------------------- Resolution: Not A Problem Fix Version/s: 0.23.0 Not a problem anymore. We get appropriate FSes to work with, and do not cast. > copyToLocal cast exception for S3 filesystem > -------------------------------------------- > > Key: HADOOP-1303 > URL: https://issues.apache.org/jira/browse/HADOOP-1303 > Project: Hadoop Common > Issue Type: Bug > Components: fs > Affects Versions: 0.12.0, 0.12.1, 0.12.2, 0.12.3 > Reporter: Mike Smith > Priority: Minor > Fix For: 0.23.0 > > > 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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira