Reply
Explorer
Posts: 23
Registered: ‎02-22-2016

How to set alerts for yarn applications

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.

Highlighted
Posts: 62
Topics: 0
Kudos: 14
Blog Posts: 0
Ideas: 0
Solutions: 6
Registered: ‎11-26-2015

Re: How to set alerts for yarn applications

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

Announcements