Support Questions

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

HDP Hostnames on EC2

avatar
New Contributor

I recently installed HDP 2.3 on a 3 node cluster on Amazon EC2. Things went through relatively smoothly but then for some reason the person who set up the nodes restarted them all, causing them all to come up with different internal hostnames. When Ambari loaded back up, everything was in a funky state since they were looking for hostnames that no longer existed.

What is the best practice for setting up HDP to avoid this? Is there anything I can easily do at this point to recover the cluster I had already set up?

Thanks!

1 ACCEPTED SOLUTION

avatar
hide-solution

This problem has been solved!

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

Register/Login
5 REPLIES 5

avatar
hide-solution

This problem has been solved!

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

Register/Login

avatar

@Paul Tamburello: Was this answer helpful? If so, could you please accept it through the HCC? If not, is there some follow-up I could help you with?

avatar
Guru

There has been some work in the community on host rename. Looks like AMBARI-4670 is out dated.

Check this JIRA out as it explains the steps, and there are some limitations/restrictions.

https://issues.apache.org/jira/browse/AMBARI-13507

avatar
Super Collaborator

@Paul Tamburello

I am wondering how difficult it will be to change the hostname of these servers back to what they were before.

See this http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/set-hostname.html

avatar
Explorer

Paul Tamburello

You can manage these instances by provisioning tool (eg Chef/Puppet) .

Setup the Nodename as you wish for example , master , slave, edge and use one of the recipes like the below one to set the nodename to hostname. This way whenever you reboot the AWS instances receipes will automatically kicks in if there is some discrepency.

https://supermarket.chef.io/cookbooks/hostnames/versions/0.3.1

Also make sure both reverse and forward lookup works.

Hope this helps.