FAQ
Are you facing an issue with the NameNode startup right now? What is
it logging when you try to start it?

If you've deleted dfs.data.dir, then there usually isn't a problem as
you should have replicas elsewhere. The only loss would be some of the
single-replica blocks, if you had single-replica files.

If you've deleted dfs.name.dir, you need to place back a current/
directory from the secondary namenode backup and boot up.

The "namenode -recover" is to only be used for editlog corruptions,
which am not sure you're running into, based on your details.
On Sat, Jul 20, 2013 at 5:27 AM, John Meza wrote:
While this is not a scm specific issue I thought I'd asked here first since
I installed with scm. I can move the question to user@hadoop.apache.org if
it's appropriate.
--- info ----
- 10 node cluster is used for testing
-version = 2.0.0-cdh4.2.0
-namenode is also datanode (that machine is zip4)
-----
I had ip address issues with the nodes. Removed a problem node from the
cluster,
-planned to do some cleanup on that node
-then add it back
-then rebalance the cluster
But I deleted the dfs.data.dir on the namenode/datanode.
--> it's been a long day.

cm shows the zip4 datanode as fine.!!? But the namenode on zip4 is stopped.
I tried
hadoop namenode -recover
-this generated:
hdfs.StateChange: STATE* Safe mode is ON.
So i tried : "hdfs dfsadmin -safemode leave" to turn safe mode off as
suggested.
no-go:
... to zip4:8020 failed on connection exception
-that failed with :
WARN common.Storage: Storage directory /tmp/hadoop-linux/dfs/name does
not exist
-which caused:
InconsistentFSStateException: Directory /tmp/hadoop-linux/dfs/name is
in an inconsistent state: storage directory does not exist or....

This is a test cluster, but has alot of good test data. I would prefer to
not lose the data. But if I do it's not the end of the world.
Any suggestions?
thanks
John






--
Harsh J

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 7 | next ›
Discussion Overview
groupscm-users @
categorieshadoop
postedJul 19, '13 at 11:57p
activeJul 25, '13 at 12:43a
posts7
users2
websitecloudera.com
irc#hadoop

2 users in discussion

John Meza: 4 posts Harsh J: 3 posts

People

Translate

site design / logo © 2022 Grokbase