Support Questions

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

Best Practices -how to stop and start Ambari services in HDP 2.3.2 in Amazon EC2

avatar
Expert Contributor

Hi,

I have HDP 2.3.2 cluster set up on Amazon Ec2 on RHEL 7.x .

We are stopping the Amazon cluster when not in used basically after work hours.

Can somebody share their experience, how can we start Ambari services using Amazon EC2 API or any other means.

Any other best practices which needs to be followed.

Would really appreciate your help.

Thanks

1 ACCEPTED SOLUTION

avatar

With EC2 your challenge is the IP addresses. They will change on restart/reboot of a node, and you need to make them all static. There's no 'how to have core-site.xml update automatically', rather 'how to ensure my node doesn't move around the network on reboot'. Hope this helps.

View solution in original post

4 REPLIES 4

avatar
Master Mentor
@Divya Gehlot

You can use this https://gist.github.com/randerzander/5b7b0e075e59f... to stop services. You can make it part of server shutdown process.

And Cloud watch https://aws.amazon.com/about-aws/whats-new/2013/01...

avatar
Expert Contributor

@Neeraj Sabharwal

We are currently using Amazon EC2 API tools to start and stop the instances.and able to start the ambari server too.

But the issue now is in core-site.xml, In its still showing the old public URL for hive services.

How can we make this changes happen automatically.

avatar
Master Mentor

avatar

With EC2 your challenge is the IP addresses. They will change on restart/reboot of a node, and you need to make them all static. There's no 'how to have core-site.xml update automatically', rather 'how to ensure my node doesn't move around the network on reboot'. Hope this helps.