<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to set alerts for yarn applications in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-set-alerts-for-yarn-applications/m-p/47807#M30957</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/14875"&gt;@npdell&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cloudera Manager trigger is what you need.&amp;nbsp;&lt;/SPAN&gt;You can create it at here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CM --&amp;gt; YARN --&amp;gt; Status --&amp;gt; Create trigger --&amp;gt; Edit manually&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) It will alert if there are more than 50 applications in pending state&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF (select total_apps_pending_across_yarn_pools WHERE entityName=$SERVICENAME and LAST( total_apps_pending_across_yarn_pools) &amp;gt; 50) DO health:concerning&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Metric Evaluation Window: 10 minutes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) It will alert if more than 5 applications are failing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF (select total_apps_failed_rate_across_yarn_pools WHERE entityName=$SERVICENAME and LAST( total_apps_failed_rate_across_yarn_pools) &amp;gt; 5) DO health:concerning&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the documentation about CM triggers:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.cloudera.com/documentation/enterprise/latest/topics/cm_dg_triggers.html" target="_blank"&gt;http://www.cloudera.com/documentation/enterprise/latest/topics/cm_dg_triggers.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gabor&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2016 10:38:05 GMT</pubDate>
    <dc:creator>roczei</dc:creator>
    <dc:date>2016-11-22T10:38:05Z</dc:date>
    <item>
      <title>How to set alerts for yarn applications</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-set-alerts-for-yarn-applications/m-p/41740#M30956</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to set up alerts ( mail alert) for the below events . How to achieve this using cloudera manager?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whenever a job fails.&lt;/P&gt;&lt;P&gt;When a job is in Accepted state for more than 10 minutes.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:23:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-set-alerts-for-yarn-applications/m-p/41740#M30956</guid>
      <dc:creator>npdell</dc:creator>
      <dc:date>2022-09-16T10:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to set alerts for yarn applications</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-set-alerts-for-yarn-applications/m-p/47807#M30957</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/14875"&gt;@npdell&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cloudera Manager trigger is what you need.&amp;nbsp;&lt;/SPAN&gt;You can create it at here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CM --&amp;gt; YARN --&amp;gt; Status --&amp;gt; Create trigger --&amp;gt; Edit manually&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) It will alert if there are more than 50 applications in pending state&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF (select total_apps_pending_across_yarn_pools WHERE entityName=$SERVICENAME and LAST( total_apps_pending_across_yarn_pools) &amp;gt; 50) DO health:concerning&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Metric Evaluation Window: 10 minutes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) It will alert if more than 5 applications are failing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF (select total_apps_failed_rate_across_yarn_pools WHERE entityName=$SERVICENAME and LAST( total_apps_failed_rate_across_yarn_pools) &amp;gt; 5) DO health:concerning&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the documentation about CM triggers:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.cloudera.com/documentation/enterprise/latest/topics/cm_dg_triggers.html" target="_blank"&gt;http://www.cloudera.com/documentation/enterprise/latest/topics/cm_dg_triggers.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gabor&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 10:38:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-set-alerts-for-yarn-applications/m-p/47807#M30957</guid>
      <dc:creator>roczei</dc:creator>
      <dc:date>2016-11-22T10:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to set alerts for yarn applications</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-set-alerts-for-yarn-applications/m-p/376929#M30958</link>
      <description>&lt;DIV class="p-rich_text_section"&gt;Maybe you can combine these two for a failed job alert:&lt;/DIV&gt;
&lt;UL class="p-rich_text_list p-rich_text_list__bullet" data-stringify-type="unordered-list" data-indent="0" data-border="0"&gt;
&lt;LI data-stringify-indent="0" data-stringify-border="0"&gt;&lt;A class="c-link" href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.8/monitoring-and-diagnostics/topics/cm-alerts-script.html" target="_blank" rel="noopener noreferrer" data-stringify-link="https://docs.cloudera.com/cdp-private-cloud-base/7.1.8/monitoring-and-diagnostics/topics/cm-alerts-script.html" data-sk="tooltip_parent"&gt;“Configuring Custom Alert Scripts”&lt;/A&gt;&lt;/LI&gt;
&lt;LI data-stringify-indent="0" data-stringify-border="0"&gt;&lt;A class="c-link" href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.8/monitoring-and-diagnostics/topics/cm-configuring-log-alerts-2.html" target="_blank" rel="noopener noreferrer" data-stringify-link="https://docs.cloudera.com/cdp-private-cloud-base/7.1.8/monitoring-and-diagnostics/topics/cm-configuring-log-alerts-2.html" data-sk="tooltip_parent"&gt;“Configuring Log Alerts”&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV class="p-rich_text_section"&gt;My thought process is, that in the RM log, there is a very reliable pattern when a job fails (e.g.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG data-stringify-type="bold"&gt;&lt;I data-stringify-type="italic"&gt;finalStatus=FAILED&lt;/I&gt;&lt;/STRONG&gt;), so you could set up a Log Alert for that.&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Sep 2023 12:02:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-set-alerts-for-yarn-applications/m-p/376929#M30958</guid>
      <dc:creator>Bender</dc:creator>
      <dc:date>2023-09-27T12:02:33Z</dc:date>
    </item>
  </channel>
</rss>

