ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitalyi Brodetskyi" <>
Subject Re: Review Request 39519: Create a script to change host names for a stopped cluster
Date Thu, 22 Oct 2015 11:46:20 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated Жов. 22, 2015, 11:46 до полудня)

Review request for Ambari, Dmitro Lisnichenko, Jonathan Hurley, Myroslav Papirkovskyy, and
Sumit Mohanty.

Bugs: AMBARI-13507

Repository: ambari


At a high-level we may follow this approach:
Ensure cluster is not kerberized
Assume all services to be stopped (add a check to ensure that services are stopped)
We may also need to check and confirm that there are no commands pending execution - or just
mark them as aborted
Update all host names in the database based on the mapping provided (e.g. host1 -->
As SQLClient cannot be assumed consider using jdbc - similar to the Upgrade code
Modify all configs to replace the hostnames as needed (not sure if plain search and replace
will suffice)
Agents need to be re-configured if ambari-server hostname changes

Diffs (updated)

  ambari-server/sbin/ambari-server 1843cd6 
  ambari-server/src/main/java/org/apache/ambari/server/configuration/ 702e12d

  ambari-server/src/main/java/org/apache/ambari/server/state/ 62c3b61 
  ambari-server/src/main/java/org/apache/ambari/server/update/ PRE-CREATION

  ambari-server/src/main/python/ 88df81a 
  ambari-server/src/main/python/ambari_server/ PRE-CREATION 
  ambari-server/src/main/python/ambari_server/ 6c6e7ea 



mvn clean test


Vitalyi Brodetskyi

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message