Hey Folks, 

I am seeing a very weird problem in FileSystem.get(Configuration).

I want to get a FileSystem given the configuration, so I am using

      Configuration conf = new Configuration();

     _fs = FileSystem.get(conf);


The problem is I am getting LocalFileSystem on some machines and Distributed
on others. I am printing conf.get("fs.default.name") at all places and
It returns the right HDFS value 'hdfs://dummy:9000'

My expectation is looking at fs.default.name if it is hdfs:// it should give
me a DistributedFileSystem always.

Best
Bhupesh





Reply via email to