hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Allen Wittenauer ...@apache.org>
Subject Re: configuration and FileSystem
Date Tue, 10 May 2011 17:46:54 GMT

On May 10, 2011, at 9:57 AM, Gang Luo wrote:
> I was confused by the configuration and file system in hadoop. when we create a 
> FileSystem object and read/write something through it, are we writing to or 
> reading from HDFS?

	Typically, yes.

> Could it be local file system?


> If yes, what determines which 
> file system it is? Configuration object we used to create the FileSystem object?


> When I write mapreduce program which "extends Configured implements Tool", I can 
> get the right configuration by calling getConf() and use the FileSystem object 
> to communicate with HDFS. What if I want to read/write HDFS in a separate 
> Utility class? Where does the configuration come from?

	You need to supply it.

View raw message