hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Li (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-3241) BackupNode can't start if its storage directory is not manually hacked
Date Tue, 10 Apr 2012 01:53:18 GMT
BackupNode can't start if its storage directory is not manually hacked

                 Key: HDFS-3241
                 URL: https://issues.apache.org/jira/browse/HDFS-3241
             Project: Hadoop HDFS
          Issue Type: Improvement
          Components: name-node
    Affects Versions: 3.0.0
            Reporter: Brandon Li
            Priority: Minor

BackupNode can't start if its storage dir is not formatted (because it extends NameNode).
After I use "/bin/hadoop namenode -format" to format its storage directory, it still can't
start because the inconsistent namespace with primary namenode.

2012-04-09 18:33:16,464 ERROR namenode.NameNode (NameNode.java:main(958)) - Exception in namenode
java.io.IOException: Inconsistent namespace information:
NamespaceInfo has:
Storage has:
	at org.apache.hadoop.hdfs.server.protocol.NamespaceInfo.validateStorage(NamespaceInfo.java:109)
	at org.apache.hadoop.hdfs.server.namenode.BackupNode.registerWith(BackupNode.java:332)
	at org.apache.hadoop.hdfs.server.namenode.BackupNode.initialize(BackupNode.java:161)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:546)
	at org.apache.hadoop.hdfs.server.namenode.BackupNode.<init>(BackupNode.java:86)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:893)

The backup node started after I copied the VERSION file from the primary namenode storage
directory to that of the backup node.

This manual hack can be avoided if the backup node can format its local directory by requesting
VERSION info from the primary namenode.


This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message