The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

HDFS Forum

Namenode of Hadoop Crash?

  • #17830

    Hi I am running Hadoop-1.0.3 from last 1 month but today I got following error at namelog logs:
    2013-03-18 11:11:40,910 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Registered FSNamesystemStateMBean and NameNodeMXBean
    2013-03-18 11:11:40,928 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: Caching file names occuring more than 10 times
    2013-03-18 11:11:40,936 INFO org.apache.hadoop.hdfs.server.common.Storage: Number of files = 156
    2013-03-18 11:11:40,958 INFO org.apache.hadoop.hdfs.server.common.Storage: Number of files under construction = 0
    2013-03-18 11:11:40,958 INFO org.apache.hadoop.hdfs.server.common.Storage: Image file of size 23325 loaded in 0 seconds.
    2013-03-18 11:11:40,962 ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: java.lang.NullPointerException
    at org.apache.hadoop.hdfs.server.namenode.FSDirectory.addChild(
    at org.apache.hadoop.hdfs.server.namenode.FSDirectory.addChild(
    at org.apache.hadoop.hdfs.server.namenode.FSDirectory.addNode(
    at org.apache.hadoop.hdfs.server.namenode.FSDirectory.unprotectedAddFile(
    at org.apache.hadoop.hdfs.server.namenode.FSEditLog.loadFSEdits(
    at org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSEdits(
    at org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSImage(

    How to resolve it? I have restarted it manu times but got same problem.

    Thanks in advance.

  • Author
  • #17868
    Larry Liu

    Hi, Bhushan

    From the error log, it seems there are some issue with loadFSImage. Do you Secondary Namenode running? If you do, please try following:

    1. Create on your new namenode (please backup the older information. it must be empty)
    2. Make sure fs.checkpoint.dir is pointed at your last known good copy
    3. Start the namenode with the -importCheckpoint option

    Please let us know how’s going.


The topic ‘Namenode of Hadoop Crash?’ is closed to new replies.

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.