You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Laurent Goujon (JIRA)" <ji...@apache.org> on 2014/01/28 06:15:38 UTC

[jira] [Updated] (HADOOP-10297) FileChecksum should provide getChecksumOpt method

     [ https://issues.apache.org/jira/browse/HADOOP-10297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Laurent Goujon updated HADOOP-10297:
------------------------------------

    Attachment: hadoop-10297.patch

Please review attached patch

> FileChecksum should provide getChecksumOpt method
> -------------------------------------------------
>
>                 Key: HADOOP-10297
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10297
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Laurent Goujon
>         Attachments: hadoop-10297.patch
>
>
> o.a.h.f.FileSystem has several methods which accepts directly or indirectly a ChecksumOpt parameter to configure checksum options, but there's no generic way of querying checksum options used for a given file.
> MD5MD5CRC32FileChecksum used by DFSClient has a getChecksumOpt() but since not just DistributedFileSystem is accepting a ChecksumOpt argument, but any FileSystem subclass (although only DistributedFileSystem implements a specific behaviour), I suggest to make getChecksumOpt an abstract method of FileChecksum. This could be used by tools like DistCp to replicate checksum options for example.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)