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

Switch to Threaded View
HDFS >> mail # dev >> FileSystem.getFileChecksum() returns null on LocalFileSystem


Copy link to this message
-
Re: FileSystem.getFileChecksum() returns null on LocalFileSystem
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?
>