You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Edson Ramiro <er...@gmail.com> on 2010/02/12 14:40:55 UTC
mapred.system.dir
Hi all,
I'm setting up a Hadoop Cluster and some doubts have
arisen about hadoop configuration.
The Hadoop Cluster Setup [1] says that the mapred.system.dir must
be in the HDFS and be accessible from both the server and clients.
Where is the HDFS directory? is the dfs.data.dir?
should I export by NFS or other protocol the mapred.system.dir to
leave it accessible from server and clients?
Thanks in advance
[1] http://hadoop.apache.org/common/docs/current/cluster_setup.html
Edson Ramiro
Re: mapred.system.dir
Posted by Aaron Kimball <aa...@cloudera.com>.
To expand on Eric's comment: dfs.data.dir is the local filesystem directory
(or directories) that a particular datanode uses to store its slice of the
HDFS data blocks.
so dfs.data.dir might be "/home/hadoop/data/" on some machine; a bunch of
files with inscrutable names like blk_4546857325993894516 will be stored
there. These "blk" files represent chunks of "real" complete user-accessible
files in HDFS-proper.
mapred.system.dir is a filesystem path like "/system/mapred" which is served
by the HDFS, where files used by MapReduce appear. The purpose of the config
file comment is to let you know that you're free to pick a path name like
"/system/mapred" here even though your local Linux machine doesn't have a
path named "/system"; this HDFS path is in a separate (HDFS-specific)
namespace from "/home", "/etc", "/var" and the other various denizens of
your local machine.
- Aaron
On Fri, Feb 12, 2010 at 6:23 AM, Eric Sammer <er...@lifeless.net> wrote:
> On 2/12/10 8:40 AM, Edson Ramiro wrote:
> > Hi all,
> >
> > I'm setting up a Hadoop Cluster and some doubts have
> > arisen about hadoop configuration.
> >
> > The Hadoop Cluster Setup [1] says that the mapred.system.dir must
> > be in the HDFS and be accessible from both the server and clients.
> >
> > Where is the HDFS directory? is the dfs.data.dir?
> >
> > should I export by NFS or other protocol the mapred.system.dir to
> > leave it accessible from server and clients?
> >
> > Thanks in advance
> >
> > [1] http://hadoop.apache.org/common/docs/current/cluster_setup.html
> >
> > Edson Ramiro
> >
>
> Edson:
>
> An HDFS file system is a distributed global view controlled by the
> namenode. If a file is "in HDFS" all clients and servers that are
> pointed at the namenode will be able to see everything. This means that
> you don't need to do anything special to export or reveal the
> mapred.system.dir; that's what HDFS does. It's worth reading the HDFS
> Architecture paper on the Hadoop site or the Google GFS paper for
> details on how this all works and how it relates to map reduce.
>
> HTH.
> --
> Eric Sammer
> eric@lifeless.net
> http://esammer.blogspot.com
>
Re: mapred.system.dir
Posted by Eric Sammer <er...@lifeless.net>.
On 2/12/10 8:40 AM, Edson Ramiro wrote:
> Hi all,
>
> I'm setting up a Hadoop Cluster and some doubts have
> arisen about hadoop configuration.
>
> The Hadoop Cluster Setup [1] says that the mapred.system.dir must
> be in the HDFS and be accessible from both the server and clients.
>
> Where is the HDFS directory? is the dfs.data.dir?
>
> should I export by NFS or other protocol the mapred.system.dir to
> leave it accessible from server and clients?
>
> Thanks in advance
>
> [1] http://hadoop.apache.org/common/docs/current/cluster_setup.html
>
> Edson Ramiro
>
Edson:
An HDFS file system is a distributed global view controlled by the
namenode. If a file is "in HDFS" all clients and servers that are
pointed at the namenode will be able to see everything. This means that
you don't need to do anything special to export or reveal the
mapred.system.dir; that's what HDFS does. It's worth reading the HDFS
Architecture paper on the Hadoop site or the Google GFS paper for
details on how this all works and how it relates to map reduce.
HTH.
--
Eric Sammer
eric@lifeless.net
http://esammer.blogspot.com