You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Hairong Kuang (JIRA)" <ji...@apache.org> on 2009/01/30 00:13:59 UTC
[jira] Updated: (HADOOP-5085) Copying a file to local with Crc
throws an exception
[ https://issues.apache.org/jira/browse/HADOOP-5085?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hairong Kuang updated HADOOP-5085:
----------------------------------
Attachment: crcChecksum.patch
This patch gives a warning if a user specifies -crc option when source file system does not have .crc file.
> Copying a file to local with Crc throws an exception
> ----------------------------------------------------
>
> Key: HADOOP-5085
> URL: https://issues.apache.org/jira/browse/HADOOP-5085
> Project: Hadoop Core
> Issue Type: Bug
> Components: fs
> Reporter: Hairong Kuang
> Fix For: 0.21.0
>
> Attachments: crcChecksum.patch
>
>
> $ hadoop dfs -get -crc /user/aa/test.txt test.txt
> get: org.apache.hadoop.dfs.DistributedFileSystem cannot be cast to
> org.apache.hadoop.fs.ChecksumFileSystem
> The problem seems to be caused by the line 251 in FsShell#copyToLocal:
> {noformat}
> 250; if (copyCrc) {
> 251: ChecksumFileSystem csfs = (ChecksumFileSystem) srcFS;
> ...
> }
> {noformat}
> Copying crc files to local should not require the source file system to be ChecksumFileSystem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.