CCA-410 · Question #47
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
The correct answer is D. Hadoop01 is fenced, and hadoop02 becomes the active namenode. Failover- initiate a failover between two NameNodes This subcommand causes a failover from the first provided NameNode to the second. If the first NameNode is in the Standby state, this command simply transitions the second to the Active statewithout error. If the first NameNode
Question
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
Options
- AHadoop02 becomes the standby namenode and hadoop01 becomes the active namenode
- BHadoop02 is fenced, and hadoop01 becomes active namenode
- CHadoop01 becomes inactive and hadoop02 becomes the active namenode
- DHadoop01 is fenced, and hadoop02 becomes the active namenode
How the community answered
(18 responses)- A6% (1)
- B6% (1)
- C17% (3)
- D72% (13)
Explanation
Failover- initiate a failover between two NameNodes This subcommand causes a failover from the first provided NameNode to the second. If the first NameNode is in the Standby state, this command simply transitions the second to the Active statewithout error. If the first NameNode is in the Active state, an attempt will be made to gracefully transition it to the Standby state. If this fails, the fencing methods (as configured by dfs.ha.fencing.methods) will be attempted in order until one of the methods succeeds. Only after this process will the second NameNode be transitioned to the Active state. If no fencing method succeeds, the second NameNode will not be transitioned to the Active state, and an error will be returned.
Topics
Community Discussion
No community discussion yet for this question.