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 can you set up alerts that send an email when a YARN job fails?

Highlighted

How can you set up alerts that send an email when a YARN job fails?

New Contributor

I am trying to find an option that is part of Cloudera Manager that will send an alert when a YARN job has failed. It seems like apps_failed_cumulative_rate stream does not show the metrics I would expect based on actual number of failed jobs.

4 REPLIES 4

Re: How can you set up alerts that send an email when a YARN job fails?

Explorer

Any update on this issue?

 

Highlighted

Re: How can you set up alerts that send an email when a YARN job fails?

New Contributor

I never found a good way to do this through the Cloudera Manager UI.

 

FWIW:

What I ended up doing was creating a script that polls the Cloudera Manager API for info on the state of YARN jobs and alerts based on unwanted states. I just sent an email out with info on the failed jobs.

 

(url for api clients: http://cloudera.github.io/cm_api/)

Highlighted

Re: How can you set up alerts that send an email when a YARN job fails?

New Contributor

is there any coniguration in expression we can do to set so that we can get the email alert as job fails.

 

can you give that expression details

Highlighted

Re: How can you set up alerts that send an email when a YARN job fails?

Super Collaborator
Hi arlo,

Do you mind to shared the script so it can be reused?
Don't have an account?
Coming from Hortonworks? Activate your account here