Hi Singo,

Did the NN shut down cleanly before you started it again? Are you running a 
secondary NN? What Hadoop version?

We had the problem of our NN data being corrupt, probably as a result of 
accidentally running 2 secondary NNs at the same time (we were able to 
reproduce it that way). But your stack trace looks a bit different from what we 
had.

You could have a look at this thread: 
http://mail-archives.apache.org/mod_mbox/hadoop-hdfs-user/201010.mbox/%[email protected]%3e<http://mail-archives.apache.org/mod_mbox/hadoop-hdfs-user/201010.mbox/<[email protected]>>.
 It has some hints on how you could possibly repair a corrupt image.


Friso

P.S.
You should probably take this to the hdfs user list, instead of HBase.



On 1 jan 2011, at 05:05, SingoWong wrote:

Hi,

When i start hadoop namenode, got ont error message below:

2011-01-01 11:58:20,763 ERROR
org.apache.hadoop.hdfs.server.namenode.NameNode:
java.lang.NullPointerException
       at
org.apache.hadoop.hdfs.server.namenode.FSDirectory.unprotectedSetTimes(FSDirectory.java:1320)
       at
org.apache.hadoop.hdfs.server.namenode.FSDirectory.unprotectedSetTimes(FSDirectory.java:1309)
       at
org.apache.hadoop.hdfs.server.namenode.FSEditLog.loadFSEdits(FSEditLog.java:776)
       at
org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSEdits(FSImage.java:992)
       at
org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSImage(FSImage.java:812)
       at
org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:364)
       at
org.apache.hadoop.hdfs.server.namenode.FSDirectory.loadFSImage(FSDirectory.java:87)
       at
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.initialize(FSNamesystem.java:311)
       at
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.<init>(FSNamesystem.java:292)
       at
org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:201)
       at
org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:279)
       at
org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:956)
       at
org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:965)

and the namenode not start, what happen for that no change any thing in
server.

Happy New Year & Regards,
Singo

Reply via email to