hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brahma Reddy Battula <brahmareddy.batt...@huawei.com>
Subject RE: namenode could not start
Date Tue, 25 Mar 2014 10:39:35 GMT
Please format the namenode and then do start-dfs..





Command for namenode format:



hdfs namenode -format







Thanks & Regards



Brahma Reddy Battula



________________________________
From: Azuryy Yu [azuryyyu@gmail.com]
Sent: Tuesday, March 25, 2014 2:39 PM
To: user@hadoop.apache.org
Subject: Re: namenode could not start

Are you sure  /home/hadoop/mydata/hdfs/namenode exists and has a right permission?


On Tue, Mar 25, 2014 at 4:51 PM, haihong lu <ung3210@gmail.com<mailto:ung3210@gmail.com>>
wrote:
Dear all:

I had a problem that the namenode could not start when i ran start-dfs.sh . Show the message
as below:

FATAL org.apache.hadoop.hdfs.server.namenode.NameNode: Exception in namenode join
org.apache.hadoop.hdfs.server.common.InconsistentFSStateException: Directory /home/hadoop/mydata/hdfs/namenode
is in an inconsistent state: storage directory does not exist or is not accessible.
        at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverStorageDirs(FSImage.java:292)
        at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:200)
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:787)
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:568)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:443)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:491)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:684)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:669)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1254)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1320)

Thank for any help



Mime
View raw message