Maintenance Mode supports suppressing alerts and skipping bulk operations for specific services, components and hosts in an Ambari-managed cluster.
There are many scenarios when we may want to turn on Maintenance Mode specially when we are performing hardware or software maintenance, changing configuration settings, troubleshooting, decommissioning, or removing cluster nodes. In such scenario we can place a service, component, or host object in Maintenance Mode before we start to perform necessary maintenance or troubleshooting tasks.
In maintenance mode following things happen:
1. It causes suppression of alerts, warnings and status change indicators generated for the object.
2. It exempts an object from host-level or service-level bulk operations.
Although it can be done from the ambari UI, However here in this article we will see how to manage the maintenance mode for some Services like HBase using the APIs.
Turning ON Maintenance Mode for any specific component (like: region server on host jss4).