/clusters/{clusterName}/services/{serviceName}/commands/hdfsFailover

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

POST

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.

Parameters

name description type default
serviceName The HDFS service name. path
force Whether to force failover. query false
clusterName (no documentation provided) path

Request Body

element: roleNames

Names of the NameNodes in the HA pair.

Response Body

element: command

Information about the submitted command.