hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Kucinich" <benkucin...@gmail.com>
Subject Directory /tmp/hadoop-root/dfs/name is in an inconsistent state
Date Sat, 09 Feb 2008 07:39:11 GMT
Many times while starting hadoop, bin/start-all.sh, I get this error
in logs/hadoop-root-namenode-master.log

/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG:   host = master/127.0.0.1
STARTUP_MSG:   args = []
************************************************************/
2008-02-09 13:04:04,217 INFO org.apache.hadoop.dfs.NameNode: Namenode
up at: localhost/127.0.0.1:9000
2008-02-09 13:04:04,239 INFO org.apache.hadoop.metrics.jvm.JvmMetrics:
Initializing JVM Metrics with processName=NameNode, sessionId=null
2008-02-09 13:04:04,412 INFO org.apache.hadoop.dfs.Storage: Storage
directory /tmp/hadoop-root/dfs/name does not exist.
2008-02-09 13:04:04,414 INFO org.apache.hadoop.ipc.Server: Stopping
server on 9000
2008-02-09 13:04:04,415 ERROR org.apache.hadoop.dfs.NameNode:
org.apache.hadoop.dfs.InconsistentFSStateException: Directory
/tmp/hadoop-root/dfs/name is in an inconsistent state: storage
directory does not exist or is not accessible.
        at org.apache.hadoop.dfs.FSImage.recoverTransitionRead(FSImage.java:153)
        at org.apache.hadoop.dfs.FSDirectory.loadFSImage(FSDirectory.java:76)
        at org.apache.hadoop.dfs.FSNamesystem.<init>(FSNamesystem.java:221)
        at org.apache.hadoop.dfs.NameNode.init(NameNode.java:130)
        at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:168)
        at org.apache.hadoop.dfs.NameNode.createNameNode(NameNode.java:804)
        at org.apache.hadoop.dfs.NameNode.main(NameNode.java:813)

2008-02-09 13:04:04,416 INFO org.apache.hadoop.dfs.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at master/127.0.0.1
************************************************************/

I find that /tmp/hadoop-root/dfs/name is not present in my system.
However, /tmp/hadoop-root/dfs is present which has data directory. I
had done bin/hadoop namenode -format earlier. Then yesterday I
shutdown the machine and today it gives this error when I started the
machine and hadoop again. Can someone please explain why this happens.

Mime
View raw message