Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to get rid of stale alerts in Ambari

avatar

I have restarted Ambari Server and all agents along with complete HDP stack multiple times in past 5 days for different activities but these alerts don't go away.

1308-screen-shot-2016-01-13-at-102524-am.png

1 ACCEPTED SOLUTION

avatar
Master Guru

Hi @Pardeep with Support's help we got rid of those alerts by adding 'misfire_grace_time':10 to APS_CONFIG in /usr/lib/python2.6/site-packages/ambari_agent/AlertSchedulerHandler.py on every node. After the update that section should read:

APS_CONFIG = { 
'threadpool.core_threads': 3, 
'coalesce': True, 
'standalone': False, 
'misfire_grace_time':10 
}

In this we are allowing up to 10 seconds for all tests to complete. After that restart all ambari_agents. We tried on one cluster and it worked. This is most likely fixed in Ambari-2.2 but happens in 2.1.2.

View solution in original post

20 REPLIES 20

avatar
Contributor

This was what fixed it for me.

 

Using Ambari Version 2.7.3.0

 

SSH into host  that's reporting stale alerts:

sudo vi /etc/ambari-agent/conf/ambari-agent.ini

change alert_grace_period (default 5 | change to: 15)

optional: restart service's instance reporting stale alerts (JournalNodes, NameNodes,etc)

sudo systemctl restart ambari-agent.service

 

Example using CentOS / Redhat