Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

How to set alerts for yarn applications

avatar
Rising Star

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 ACCEPTED SOLUTION

avatar
Expert Contributor

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

View solution in original post

2 REPLIES 2

avatar
Expert Contributor

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

avatar
Moderator
Maybe you can combine these two for a failed job alert:
My thought process is, that in the RM log, there is a very reliable pattern when a job fails (e.g. finalStatus=FAILED), so you could set up a Log Alert for that.

Ferenc Erdelyi, Technical Solutions Manager

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Learn more about the Cloudera Community: