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.
Cloudera Manager trigger is what you need. You can create it at here:
CM --> YARN --> Status --> Create trigger --> Edit manually
1) It will alert if there are more than 50 applications in pending state
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
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: