Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
HA branch (HDFS-1623)
-
None
-
Reviewed
Description
One problem I observed at HA branch is that namenode -format doesn't pick up the right configured dfs.namenode.name.dir.NameServiceId. In this case, ``namenode -format'' will format the default directory instead of the configured one, while namenode will use the correct one.
The root cause is that NameNode.initializeGenericKeys() is only invoked at the NameNode constructor. So it doesn't get called by static methods like format and finalize.