Support Questions

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

how to change IP's on all machines in ambari cluster?

avatar

hi all,

we have ambari cluster on customer site ( version 2.6.1 )

cluster include the following machines: master01 , master02 , master03 , worker01-worker64 , kafka01 - kafka03

all machines are now with IP's 162.98.23.5-75

while customer want to change to these ip's

176.12.10.5-75

please advice what is the procedure to change IP's on master's machines , workers machines and kafka's machines ?

Michael-Bronson
1 ACCEPTED SOLUTION

avatar
Master Mentor

@Michael Bronson

Ambari Server depends on the FQDN of the hosts (Setting IP Addresses are not good idea). Most of the configurations requires that we pass either 0.0.0.0 address (listen to all available network interfaces) OR listen to FQDN (hostname -f).

So if your configurations should be having mostly the FQDNs (like "zookeeper.connect" , "listeners" ...etc) should be using the FQDN then changing the IP Address will not have any effect. Only you will need to make the required DNS mapping changes or the "/etc/hosts" file changes.

So you can stop the services that that gets affected due to IP Address change and then make the IP Address change (either at DNS level OR in the "/etc/hosts" file) and then restart the services. (Assuming that you have not hardcoded any IP Address in the kafka or other component configurations).

Also we will need to restart the ambari agents on those hosts.

https://community.hortonworks.com/content/supportkb/48998/correct-procedure-to-re-ip-a-client-host-i...

View solution in original post

10 REPLIES 10

avatar

@michael - We have done this in our cluster(170Nodes), It was done a year back. We took down time to perform this, Brought the whole cluster down. The steps mentioned by Jay were followed by us. the DNS changes were made during the downtime. We had two networking scripts ready on the Linux servers, one was pointing to the old ip & another pointing to new ip. Once the cluster was brought down, the new ip addresses were brought up.

Post this we have started all the Ambari & Hadoop services manually.