Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
trunk
-
None
Description
Ambari allows user to specify following properties when Namenode HA is enabled, but does not validate for correct mapping.
"dfs_ha_initial_namenode_active" : "hostname or hostgroup reference",
"dfs_ha_initial_namenode_standby" : "hostname or hostgroup referenceā
If the values for above properties are mentioned incorrectly following exception is thrown and NAMENODE fails to start.
2016-07-27 18:54:43,522 WARN namenode.FSNamesystem (FSNamesystem.java:loadFromDisk(692)) - Encountered exception loading fsimage
java.io.IOException: NameNode is not formatted.
at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:225)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:1015)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:690)
at org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:688)
at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:752)
at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:992)
at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:976)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1686)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1754)
Attachments
Attachments
Issue Links
- links to