Eli Collins created HDFS-3472:
---------------------------------
Summary: initializeSharedEdits should warn if a shared edits dir
is not configured
Key: HDFS-3472
URL: https://issues.apache.org/jira/browse/HDFS-3472
Project: Hadoop HDFS
Issue Type: Improvement
Components: ha
Affects Versions: 2.0.0-alpha
Reporter: Eli Collins
Priority: Minor
Running initializeSharedEdits w/o a shared edits dir currently yields the
following rather than a user friendly message about a shared edits dir not
being configured.
{noformat}
12/05/29 13:03:08 INFO common.Storage: Storage directory
/tmp/hadoop-hdfs/dfs/name does not exist. 12/05/29 13:03:08 ERROR
namenode.NameNode: Could not initialize shared edits dir
org.apache.hadoop.hdfs.server.common.InconsistentFSStateException: Directory
/tmp/hadoop-hdfs/dfs/name 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:274)
at
org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:180)
at
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:498)
at
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:390)
at
org.apache.hadoop.hdfs.server.namenode.NameNode.initializeSharedEdits(NameNode.java:818)
at
org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1118)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1193)
12/05/29 13:03:08 INFO namenode.NameNode: SHUTDOWN_MSG:
/************************************************************ SHUTDOWN_MSG:
Shutting down NameNode at centos60-17.ent.cloudera.com/172.29.111.244
************************************************************/
{noformat}
--
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