FAQ
This should be a straightforward question, but better safe than sorry.

I wanted to add a second name node directory (on an NFS as a backup), so now
my hdfs-site.xml contains:

<property>
<name>dfs.name.dir</name>
<value>/mnt/hadoop/name</value>
</property>
<property>
<name>dfs.name.dir</name>
<value>/public/hadoop/name</value>
</property>


When I go to start DFS i'm getting the exception:

org.apache.hadoop.hdfs.server.common.InconsistentFSStateException: Directory
/public/hadoop/name is in an inconsistent state: storage directory does not
exist or is not accessible.


After googling a bit, it seems like I want to do "bin/hadoop namenode
-format"

Is this right? As long as I shut down DFS before issuing the command I
shouldn't lose any data?

Thanks in advance,
Mike

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 5 | next ›
Discussion Overview
groupcommon-user @
categorieshadoop
postedFeb 10, '11 at 5:18p
activeFeb 10, '11 at 5:56p
posts5
users2
websitehadoop.apache.org...
irc#hadoop

2 users in discussion

Mike anderson: 3 posts Harsh J: 2 posts

People

Translate

site design / logo © 2022 Grokbase