Support Questions

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

How to get automatically services started when we restart the machine?

avatar

Hi,

When I restarted the machine due to some problem, all the services on that particular machine are getting stopped except SmartSense agent. The only SmartSense agent is getting automatically started as soon as the machine is up. In the same way, even I want other services also get started automatically like ambari-agent, services like DN, NM, AMS, etc..,

Now my questions are: Is it possible to get all the services automatically get started same as HST agent? If no, then why is only HST getting started automatically?

Any help is highly appreciated and Thanks in advance.

1 ACCEPTED SOLUTION

avatar
Master Guru

@Sridhar Bandaru

I have written a utility(work is still in progress) which can be very helpful in your case.

1. Clone my repository

git clone https://github.com/crazyadmins/useful-scripts.git

2. Goto useful-scripts/ambari/

3. Edit ambari.properties according to your cluster environment

4. Start using script 🙂

Here is the usage screenshot:

4406-screen-shot-2016-05-22-at-123445-am.png

Happy Hadooping!! 🙂

View solution in original post

10 REPLIES 10

avatar
Contributor

@Sri Bandaru You can use the auto-start feature to specify the list of components that you want to restart after a node comes up. The documentation of the feature is here: https://cwiki.apache.org/confluence/display/AMBARI/Recovery%3A+auto+start+components