Namenode High Availability (HA) can be achieved by deploying a pair of master/standby Namenode, and the master/standby nn can access edits's Wal, so the Edtis is placed on a shared storage device, and this shared storage is implemented using NFS.
The master/standby NN can be configured as a manual or automatic failover mode, which defaults to manual failover mode. Usually, the secondary NN will assume the role of the NN at the same time,
Due to the NN in-memory metadata size limit, you can use the NN federation, consisting of a set of independent NN, each NN is responsible for managing different parts of the directory structure, each DN in the cluster managed by NN can give multiple NN storage blocks, each DN maintains a block pool for each name. Each DN sends a heartbeat message and a block report to each NN at the same time.
The road to mathematics-distributed computing-hdfs (3)