Boyu-

You didn't do anything stupid. I've forgotten to format a NameNode too myself.

If you check the QuickStart guide at http://hadoop.apache.org/core/docs/current/quickstart.html you'll see that formatting the NameNode is the first of the Execution section (near the bottom of the page).

The command to format the NameNode is:

hadoop namenode -format

A warning though, you should only format your NameNode once. Just like formatting any filesystem, you can loss data if you (re)format.

Good luck.

-Matt

On Jun 26, 2009, at 1:25 PM, Boyu Zhang wrote:

Hi all,

I am a student and I am trying to install the Hadoop on a cluster, I have
one machine running namenode, one running jobtracker, two slaves.

When I run the /bin/start-dfs.sh , there is something wrong with my
namenode, it won't start. Here is the error message in the log file:

ERROR org.apache.hadoop.fs.FSNamesystem: FSNamesystem initialization
failed.
java.io.IOException: NameNode is not formatted.
       at
org.apache.hadoop.dfs.FSImage.recoverTransitionRead(FSImage.java:243)
       at
org.apache.hadoop.dfs.FSDirectory.loadFSImage(FSDirectory.java:80)
       at
org.apache.hadoop.dfs.FSNamesystem.initialize(FSNamesystem.java:294)
at org.apache.hadoop.dfs.FSNamesystem.<init>(FSNamesystem.java:273)
       at org.apache.hadoop.dfs.NameNode.initialize(NameNode.java:148)
       at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:193)
       at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:179)
at org.apache.hadoop.dfs.NameNode.createNameNode(NameNode.java:830)
       at org.apache.hadoop.dfs.NameNode.main(NameNode.java:839)


I think it is something stupid i did, could somebody help me out? Thanks a
lot!


Sincerely,

Boyu Zhang

Reply via email to