hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-5085) Copying a file to local with Crc throws an exception
Date Fri, 30 Jan 2009 00:57:59 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-5085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12668685#action_12668685
] 

Tsz Wo (Nicholas), SZE commented on HADOOP-5085:
------------------------------------------------

When -crc is specified in the command and the fs does not support crc, the patch prints a
warning,  turns off -crc automatically and then continues.  I think we should throw an exception
in such case.  No?

> 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
>            Assignee: 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.


Mime
View raw message