Mount Point: /api/v1/clusters/{clusterName}/services/{serviceName}/commands/hdfsFailover


Initiate a failover in an HDFS HA NameNode pair.

The arguments should contain the names of the two NameNodes in the HA pair. The first one should be the currently active NameNode, the second one the NameNode to be made active.


name description type default
clusterName The name of the cluster. path
serviceName The HDFS service name. path
force Whether to force failover. query false

Request Body

element: roleNames

Names of the NameNodes in the HA pair.

Response Body

element: command

Information about the submitted command.