Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 06-07-2016 02:56 AM - edited 09-16-2022 03:23 AM
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.
Created 11-22-2016 02:38 AM
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
Created 11-22-2016 02:38 AM
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
Created on 09-27-2023 05:01 AM - edited 09-27-2023 05:02 AM
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: