Database Reference
In-Depth Information
$ sudo -u hdfs hdfs haadmin -failover --forceactive
nn2 nn1
After the namenode enters the standby state, it starts checkpointing the fsimage of
the active namenode. The fencing configuration takes effect in case of any fail-
ures during failover.
getServiceState : This option is used to print the current status of the namenode.
To print the status of the namenodes we have configured, you can use the follow-
ing commands:
$ sudo -u hdfs hdfs haadmin -getServiceState nn1
$ sudo -u hdfs hdfs haadmin -getServiceState nn2
checkHealth : This option is used to check the health of the specified namenode.
The return value of 0 indicates that the namenode is healthy. A nonzero value is
returned if the namenode is unhealthy. As per the current implementation feature,
the option will indicate an unhealthy status only if the namenode is down.
The following screenshot shows the summary section of the active namenode:
The following screenshot shows the summary section of the standby namenode:
Search WWH ::




Custom Search