• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

HDPCA Exam Objective – Configure and manage alerts

by admin

Note: This is post is part of the HDPCA exam objective series

Monitoring the health of Hadoop cluster is an important aspect of Hadoop administration. Ambari provides us the centralized management of health alerts and checks for the services in your cluster. You can set thresholds and can disable/enable alerts using the ambari UI.

You can view all the alerts definations from the alerts page in the ambari dashboard.

configure and manage alerts in ambari HDPCA

The alerts which have breached the threshold will be shown in red color. The Alerts which are under the threshold value are shown in green color.

There are many filters available on the alerts page to filter out using some condition. You can filter alerts based on:
1. State (enabled/disabled)
2. Service (alerts for a specific service like YARN, HDFS)
3. Status (OK, WARNING, CRITICAL, UNKNOWN, NONE)
4. Last status changed.
5. Alert Definition Name.

filter alert definitions in ambari - HDPCA exam objective

You can also view the alert definitions with respect to individual service groups.

ambari filter alerts with respect to service groups in HDP

Disable/Enable an Alert

An alert can be easily enabled or disabled from the Alerts page in Ambari. In the example shown below, we are disabling the “Host Disk Usage” alert.

enabling or disabling alerts in ambari HDPCA

Manage alert group

Click on “Manage Alert Group” from “Actions” drop-down to view the options to manage alert groups. You can manage alert groups for each service in this dialog. View the list of alert groups and the alert definitions configured in them. You can also add/remove alert definitions, and pick notification for that alert group.

manager alert groups in ambari HDP

Each service will have a default alert group which can not be deleted.

default alert groups in ambari HDPCA

We can add a new alert group click on the “+” icon at the bottom and provide the name of the alert group.

create alert group in ambari HDPCA exam

provide new alert group name in ambari

We can add the alert definitions to this new alert group.

add alert definitions in alert group using ambari HDPCA exam

We have added the 2 sample alerts to the new alert group as shown below.

select alert group definitions in ambari HDPCA exam objective

Verify the new alert group in ambari HDPCA exam

Create Alert Notification

Creating alerts is not sufficient if the Hadoop admin does not get the email alerts from the ambari. Let’s see how we can create a notification in ambari. Goto the alerts page and click “Manage Notifications” under the “Actions” drop-down.

manager notification in ambari HDPCA exam objective

Here, Create the new Notification using the “+” icon at the bottom.

create new alert notification in ambari HDPCA exam

Provide the information such as Name, Alert groups, Severity and email address to receive the notification on this page.

create alert notifications HDPCA exam

Click save and verify if the Notification is created.

verify the newly created notification in ambari

Manage Alert Settings (Alert Check Count)

Set the number of alert checks to perform before dispatching a notification. If during an alert check a state change occurs, Ambari will attempt to check this number of times before dispatching a notification. Increase this number if your environment experiences transient issues resulting in false alerts.

manage alert settings in ambari HDPCA exam

alert check count in Ambari HDPCA

Filed Under: Hadoop, HDPCA, Hortonworks HDP

Some more articles you might also be interested in …

  1. HDPCA Exam Objective – Install HDP using the Ambari install wizard
  2. CCA 131 – Install Cloudera Manager server and agents
  3. CCA131 – Configure NameNode HA
  4. CCA 131 – Set up a local CDH repository
  5. HDPCA Exam Objective – Add a new node to an existing cluster
  6. HDPCA Exam Objective – Install ambari agent
  7. CCA 131 – Add a service using Cloudera Manager
  8. HDPCA Exam Objective – Recover a snapshot
  9. HDPCA Exam Objective – Decommission a node (datanode)
  10. HDPCA Exam Objective – Configure a local HDP repository

You May Also Like

Primary Sidebar

Recent Posts

  • nixos-rebuild Command Examples in Linux
  • nixos-option: Command Examples in Linux
  • nixos-container : Command Examples in Linux
  • nitrogen Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright