haadmin

Allows to manage the HA mode for an HDFS cluster.

The usage is as follows:

$ hdfs haadmin -transitionToActive <serviceId> [--forceactive]
$ hdfs haadmin -transitionToStandby <serviceId>
$ hdfs haadmin -transitionToObserver <serviceId>
$ hdfs haadmin -failover [--forcefence] [--forceactive] <serviceId> <serviceId>
$ hdfs haadmin -getServiceState <serviceId>
$ hdfs haadmin -getAllServiceState
$ hdfs haadmin -checkHealth <serviceId>
$ hdfs haadmin -help <command>
Arguments

-checkHealth

Checks the health of the given NameNode

-failover

Initiates a failover between two NameNodes

-getServiceState

Determines whether the given NameNode is Active or Standby

-getAllServiceState

Returns the state of all the NameNodes

-transitionToActive

Transition the state of the given NameNode to Active (Warning: No fencing is done)

-transitionToStandby

Transition the state of the given NameNode to Standby (Warning: No fencing is done)

-transitionToObserver

Transition the state of the given NameNode to Observer (Warning: No fencing is done)

-help [cmd]

Displays help for the given command or all commands if none is specified

Found a mistake? Seleсt text and press Ctrl+Enter to report it