Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Hadoop >> mail # user >> Reason of Formatting Namenode

Adarsh Sharma 2011-03-10, 04:27
Harsh J 2011-03-10, 05:01
Adarsh Sharma 2011-03-10, 05:48
Edward Capriolo 2011-03-10, 22:48
Copy link to this message
Re: Reason of Formatting Namenode
On the first run you want namenode to initialize its directories (where it
store VERSION file, fsimage and edits).
On the subsequent formats - you are making sure you have a new EMPTY file
system. If you don't do format NameNode will load up fsimage and edits.
There is also matter of generating new space id, which is matched against
Datanode's ones. So if you format Namenode you need to cleanup data from

On the other hand, if you just add Datanodes to a running cluster - you
don't have to format NN.

On 3/9/11 8:27 PM, "Adarsh Sharma" <[EMAIL PROTECTED]> wrote:

> Dear all,
> I have configured several times a Hadoop Cluster of 2,3,5,8 nodes but
> one doubt in my mind always occur.
> Why it is necessary to format Hadoop Namenode by *bin/hadoop -namenode
> format *command.
> What is the reason and logic behind this.
> Please justify if someone knows.
> Thanks & best Regards,
> Adarsh Sharma