hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashutosh Chauhan <ashutosh.chau...@gmail.com>
Subject Re: Error in FileSystem.get()
Date Thu, 15 Oct 2009 20:46:22 GMT
Each node reads its own conf files (mapred-site.xml, hdfs-site.xml etc.)
Make sure your configs are consistent on all nodes across entire cluster and
are pointing to correct fs.

Hope it helps,
Ashutosh

On Thu, Oct 15, 2009 at 16:36, Bhupesh Bansal <bbansal@linkedin.com> wrote:

> 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
>
>
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message