Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Ambari Alerts - Namenode heap source code

Solved Go to solution

Ambari Alerts - Namenode heap source code

Hi,

Can any help me on finding source code of Namenode/Resourcemanager/datanode heap in Ambari alerts

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Ambari Alerts - Namenode heap source code

Super Collaborator

There are several alerts which cover heap. For example, if you wanted to see the raw DataNode heap value, then you'd check the metric alert definition for it:

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/2....

For NameNode, we don't alert on heap directly but we measure average heap deviation values:

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/2....

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/2....

4 REPLIES 4

Re: Ambari Alerts - Namenode heap source code

Super Mentor

@rmr1989

Heap Alerts are Available for NameNode & DataNodes by default (not for Resourcemanager).

38593-heap-alerts.png


You can find it in the following locations:

NameNode: (they are of "type": "SCRIPT" alert, and the following scripts are used)

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/2....

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/3....

.



DataNode: (It's a "type": "METRIC" kind of alert) Which uses the JMX. It checks the DataNode JMXServlet for the MemHeapUsedM and MemHeapMaxM properties.

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/2....


To know more about SCRIPT or METRIC type alerts please refer to https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.1.0/bk_ambari-operations/content/alert_types.ht...

.

Re: Ambari Alerts - Namenode heap source code

Thank you...

Highlighted

Re: Ambari Alerts - Namenode heap source code

Super Collaborator

There are several alerts which cover heap. For example, if you wanted to see the raw DataNode heap value, then you'd check the metric alert definition for it:

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/2....

For NameNode, we don't alert on heap directly but we measure average heap deviation values:

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/2....

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/2....

Re: Ambari Alerts - Namenode heap source code

Thank you..

Don't have an account?
Coming from Hortonworks? Activate your account here