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 howard chen <ho...@gmail.com> on 2006/10/11 18:33:42 UTC

Formatting the Namenode

hello all,

from the page:

http://wiki.apache.org/lucene-hadoop/GettingStartedWithHadoop

The first step to starting up your Hadoop installation is formatting
the file system. You need to do this the first time you set up a
Hadoop installation. Do not format a running file system, this will
cause all your data to be erased. To format the file system, run the
command:

i am confused by the instruction there...is that mean

1. I need to make an empty partition for hadoop first, without formatting it?

2. Is that mean haoop will only run on Linux as the file system can't
be supported by windows?

3. are there any complete step by step tutorial for newbie?

thanks.

Re: Formatting the Namenode

Posted by howard chen <ho...@gmail.com>.
On 10/12/06, Doug Cutting <cu...@apache.org> wrote:
> This refers to formatting Hadoop's DFS filesystem, not formatting a
> linux volume.  Hadoop's DFS filesystem in implemented on top the local
> filesystems of your cluster.  Hadoop does not require reformatting of
> linux filesystem volumes.  Formatting a Hadoop DFS filesystem simply
> creates a few files and directories in a configured location on your
> local filesystem (removing any files that already existed there).
>
> Does that make more sense?
>
> Doug
>
> howard chen wrote:
> > hello all,
> >
> > from the page:
> >
> > http://wiki.apache.org/lucene-hadoop/GettingStartedWithHadoop
> >
> > The first step to starting up your Hadoop installation is formatting
> > the file system. You need to do this the first time you set up a
> > Hadoop installation. Do not format a running file system, this will
> > cause all your data to be erased. To format the file system, run the
> > command:
> >
> > i am confused by the instruction there...is that mean
> >
> > 1. I need to make an empty partition for hadoop first, without
> > formatting it?
> >
> > 2. Is that mean haoop will only run on Linux as the file system can't
> > be supported by windows?
> >
> > 3. are there any complete step by step tutorial for newbie?
> >
> > thanks.
>

thanks.

i understood now!

thanks for the good jobs for lucene & hadoop!

also thanks  Mahadev Konar for replying me.

regards,
howard.

Re: Formatting the Namenode

Posted by Doug Cutting <cu...@apache.org>.
This refers to formatting Hadoop's DFS filesystem, not formatting a 
linux volume.  Hadoop's DFS filesystem in implemented on top the local 
filesystems of your cluster.  Hadoop does not require reformatting of 
linux filesystem volumes.  Formatting a Hadoop DFS filesystem simply 
creates a few files and directories in a configured location on your 
local filesystem (removing any files that already existed there).

Does that make more sense?

Doug

howard chen wrote:
> hello all,
> 
> from the page:
> 
> http://wiki.apache.org/lucene-hadoop/GettingStartedWithHadoop
> 
> The first step to starting up your Hadoop installation is formatting
> the file system. You need to do this the first time you set up a
> Hadoop installation. Do not format a running file system, this will
> cause all your data to be erased. To format the file system, run the
> command:
> 
> i am confused by the instruction there...is that mean
> 
> 1. I need to make an empty partition for hadoop first, without 
> formatting it?
> 
> 2. Is that mean haoop will only run on Linux as the file system can't
> be supported by windows?
> 
> 3. are there any complete step by step tutorial for newbie?
> 
> thanks.

RE: Formatting the Namenode

Posted by Mahadev Konar <ma...@yahoo-inc.com>.
Hi Howard, 
  The formatting of the filesystem is with respect to Hadoop File System. It
does not involve formatting your local file system. All you need to do is 

bin/hadoop namenode -format.

This command just creates some files for the namenode in the directory
specified as dfs.name.dir. Also, Hadoop does work on Windows. You will need
to install cygwin. 

Regards
Mahadev

> -----Original Message-----
> From: howard chen [mailto:howachen@gmail.com]
> Sent: Wednesday, October 11, 2006 9:34 AM
> To: hadoop-user@lucene.apache.org
> Subject: Formatting the Namenode
> 
> hello all,
> 
> from the page:
> 
> http://wiki.apache.org/lucene-hadoop/GettingStartedWithHadoop
> 
> The first step to starting up your Hadoop installation is formatting
> the file system. You need to do this the first time you set up a
> Hadoop installation. Do not format a running file system, this will
> cause all your data to be erased. To format the file system, run the
> command:
> 
> i am confused by the instruction there...is that mean
> 
> 1. I need to make an empty partition for hadoop first, without formatting
> it?
> 
> 2. Is that mean haoop will only run on Linux as the file system can't
> be supported by windows?
> 
> 3. are there any complete step by step tutorial for newbie?
> 
> thanks.