Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
HDFS, mail # dev - FileSystem.getFileChecksum() returns null on LocalFileSystem


+
Hans Uhlig 2012-11-14, 16:08
Copy link to this message
-
Re: FileSystem.getFileChecksum() returns null on LocalFileSystem
Eli Collins 2012-11-14, 18:02
It's not implemented for local file system (RawLocalFileSystem), see the
javadoc from FileSystem:

   * @return The file checksum.  The default return value is null,
   *  which indicates that no checksum algorithm is implemented
   *  in the corresponding FileSystem.

Given that LocalFileSystem extends ChecksumFileSystem it would be
reasonable for it to implement it. Feel free to file a jira for that if you
need it.

Thanks,
Eli

On Wed, Nov 14, 2012 at 8:08 AM, Hans Uhlig <[EMAIL PROTECTED]> wrote:

> This seems to return null always, despite the fact that it should return a
> checksum for the file. Has this been disabled since the doc was written?
>