Your cluster implements HDFS High Availability (HA). Your two NameNodes are named
nn01 and nn02. What occurs when you execute the command: hdfs haadmin –failover nn01
nn02?

A.
nn02 becomes the standby NameNode and nn01 becomes the active NameNode
B.
nn01 becomes the standby NameNode and nn02 becomes the active NameNode
C.
nn02 is fenced, and nn01 becomes the active NameNode
D.
nn01 is fenced, and nn02 becomes the active NameNode
Explanation:
B
0
0
Answer B is correct
0
0
D is the correct answer
0
0
d
0
0
Correct answer D
If nn2 is not the active NameNode, use the hdfs haadmin -failover command to initiate a failover from nn1 to nn2
0
0
D
0
0
Error!!
Correct answer B
0
0
D is the correct answer.
https://hadoop.apache.org/docs/r2.7.0/hadoop-project-dist/hadoop-hdfs/HDFSCommands.html
hdfs haadmin -failover [–forcefence] [–forceactive]
0
0