I was going through High Availability in Hadoop Definitive guide and was unclear with below,
To recover from a failed namenode in this situation, an administrator starts a new primary namenode with one of the filesystem metadata replicas and configures datanodes and clients to use this new namenode. The new namenode is not able to serve requests until it has
(i) loaded its namespace image into memory,
(ii) replayed its edit log, and
(iii) received enough block reports from the datanodes to leave safe mode.
My understanding:-
Initially the primary name node was failed and new name node was started "with one of the filesystem metadata replicas".
Below are the questions i have:-
a.) 'filesystem metadata replicas' mean backup of filesystem in NFS or replicated fs metadata in secondary name? And if not, is it some thing else.
b.) Procedure to started new name node in place of failed primary name node.
c.) how to load namespace image into memory in new name node.
d.) how to replay edit logs in new name node.
e.) How does new name node receives block reports from datanodes.
f.) what is safe mode in hadoop.
h.) is safe mode has different meaning in name node and in datanode.
i.) How to make sure name node received enough block reports.
J.) How to confirm datanode's left safe mode.