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

Switch to Threaded View
MapReduce >> mail # user >> org.apache.hadoop.io.MapFile.Reader.Reader(FileSystem fs, String dirName, Configuration conf) constructor ignores the FileSystem


Copy link to this message
-
org.apache.hadoop.io.MapFile.Reader.Reader(FileSystem fs, String dirName, Configuration conf) constructor ignores the FileSystem
Hi,

The constructor of Reader class ignores the FileSystem parameter provided in the constructor parameter.
This results in creation of Path on the basis of default FileSystem mentioned in the configuration even though user wants to pass LocalFileSystem.

The behavior has been verified with cdh4b2 version. Is this a correct behavior of the API?

Cheers,
Subroto Sanyal