Support Questions

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

service autostart with a notification

avatar

Hello, im currently an intern and was given a task to automate a hadoop cluster. It should auto start the component once its down and alert the user (email or similar) that the node was autostarted. How would i go about doing this? Thanks in advance!

1 ACCEPTED SOLUTION

avatar
Master Mentor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
8 REPLIES 8

avatar
Master Mentor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar

Thanks a lot Jay, I did it according to the page you sent in but manually turned of the nodes to test it which didnt seem to give me a reply, and in turn I taught i did it wrong.

avatar
Master Mentor

@Matas Mockus

Auto Start of components should work if the following conditions are met:


1. The components were not gracefully stopped (via Ammari API calls or via UI). Means the components were abruptly killed/terminated due to Host reboot or due to some errors in those componentes.


2. As soon as the Host comes up at least Ambari Agent should be running as a service so that as soon as the host reboots the Ambari Agent comes up automatically. This is needed because the Ambari Agent sends the current state info of the components present in that host to Ambari Server and then Ambari checks the "desired state" of the components with the "actual State" of those components sent by the ambari agent.


If the desired state of those component does not match (support in ambari DB the desired state is "STARTED" but agent says that those components are actually Down) then Ambari Server will send a recovery instruction to agents due to the AutoStart Setting.

avatar

So if i add email notifications or such i will still receive them before the autostart takes place?

avatar
Master Mentor

@Matas Mockus

Alert notification is not related with the Service Auto Start feature. Those features will work separately.

So if you have configured any notification like Email Alert Notification then once the component goes down the alert will still be triggered normally based ont he alert trigger interval set for those individual alerts telling that the component went down (Service Auto Start feature will work independently).




avatar
Master Mentor

@Matas Mockus
Do you have any additional query that you have as part of this HCC thread?

avatar
Master Mentor

@Matas Mockus

If this answers your query then can you please close this HCC thread by clicking on the "Accept" button on the helpful answer.

avatar

No thanks @Jay