請參考 "Hadoop Operations", Chapter 5, P.111
範例 5-12 的命令,手動啟動主要的名稱節點。設定於 -failover 指令的引數是
應該進入待命狀態的名稱節點,後面接著
應進入主動狀態的名稱節點。答案.....我不明講,請解讀字面意義是否與上面的說明相符

jerryc9855 寫:
最近在準備CCA-410考試,遇到了以下這兩個問題,個人覺得Question 1答案應該是C,Question 2答案應該是D,請各位幫忙看一下我的答案和觀念是否有錯,感謝!
1. Your cluster implements HDFS High Availability (HA). You 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 nn02 becomes the active NameNode
B. Nn01 is fenced, and nn01 becomes the active NameNode
C. Nn01 is fenced, and nn02 becomes the active NameNode
D. Nn01 becomes the standby NameNode and nn02 becomes the active NameNode
2.Your cluster implements hdfs high availability (HA) your two namenodes are named hadoop01 and hadoop02.
What occurs when you execute the command:
Sudo -u hdfs haadmin failover hadoop01 hadoop02
A. Hadoop02 becomes the standby namenode and hadoop01 becomes the active namenode
B. Hadoop02 is fenced, and hadoop01 becomes active namenode
C. Hadoop01 becomes inactive and hadoop02 becomes the active namenode
D. Hadoop01 is fenced, and hadoop02 becomes the active namenode