FAQ
copyToLocal cast exception for S3 filesystem
--------------------------------------------

Key: HADOOP-1303
URL: https://issues.apache.org/jira/browse/HADOOP-1303
Project: Hadoop
Issue Type: Bug
Components: fs
Affects Versions: 0.12.3, 0.12.2, 0.12.1, 0.12.0
Reporter: Mike Smith
Priority: Minor


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.
-
You can reply to this email to add a comment to the issue online.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupcommon-dev @
categorieshadoop
postedApr 28, '07 at 12:19a
activeApr 28, '07 at 12:19a
posts1
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Mike Smith (JIRA): 1 post

People

Translate

site design / logo © 2022 Grokbase