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.

How to set alerts for yarn applications

How to set alerts for yarn applications

Explorer

Hi ,

 

I would like to set up alerts ( mail alert) for the below events . How to achieve this using cloudera manager?

 

Whenever a job fails.

When a job is in Accepted state for more than 10 minutes.

1 REPLY 1

Re: How to set alerts for yarn applications

Rising Star

Hello @npdell,

 

Cloudera Manager trigger is what you need. You can create it at here:

 

CM --> YARN --> Status --> Create trigger --> Edit manually

 

Examples:

 

1) It will alert if there are more than 50 applications in pending state

 

Expression:

 

IF (select total_apps_pending_across_yarn_pools WHERE entityName=$SERVICENAME and LAST( total_apps_pending_across_yarn_pools) > 50) DO health:concerning

 

Metric Evaluation Window: 10 minutes

 

2) It will alert if more than 5 applications are failing

 

Expression:

 

IF (select total_apps_failed_rate_across_yarn_pools WHERE entityName=$SERVICENAME and LAST( total_apps_failed_rate_across_yarn_pools) > 5) DO health:concerning

 

Here is the documentation about CM triggers:

 

http://www.cloudera.com/documentation/enterprise/latest/topics/cm_dg_triggers.html

 

Gabor