You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Ben Kucinich <be...@gmail.com> on 2008/02/09 08:39:11 UTC

Directory /tmp/hadoop-root/dfs/name is in an inconsistent state

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.

Re: Directory /tmp/hadoop-root/dfs/name is in an inconsistent state

Posted by Albert Strasheim <fu...@gmail.com>.
Watch out, if you're Linux or something similar, cron probably runs
tmpwatch periodically which might be deleting old files from /tmp.

Regards,

Albert

On Feb 11, 2008 8:43 PM, Raghu Angadi <ra...@yahoo-inc.com> wrote:
>
> Did you find /tmp/hadoop-root/dfs/name earlier? Are you sure the config
> hasn't changed before the last restart? Hadoop itself does not remove
> these directories for any reason.
>
> Raghu.
>
>
> Ben Kucinich wrote:
> > Many times while starting hadoop, bin/start-all.sh, I get this error
> > in logs/hadoop-root-namenode-master.log

Re: Directory /tmp/hadoop-root/dfs/name is in an inconsistent state

Posted by Raghu Angadi <ra...@YAHOO-INC.COM>.
Did you find /tmp/hadoop-root/dfs/name earlier? Are you sure the config 
hasn't changed before the last restart? Hadoop itself does not remove 
these directories for any reason.

Raghu.

Ben Kucinich wrote:
> 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.