Install the new Ambari server
Install a new Ambari server on the new host, drop the old Ambari database, and add a new Ambari database.
-
Install the new Ambari server on the new host.
yum install ambari-server
-
Run setup the Ambari Server and setup similar to how the original Ambari Server is
configured.
ambari-server setup
-
Restart the PostgreSQL instance.
service postgresql restart
-
Open the PostgreSQL interactive terminal.
su - postgres psql
-
Using the interactive terminal, drop the ambari database created by the new ambari
setup and install.
drop database ambari;
-
Check to make sure the databases have been dropped.
\l
No ambari databases should appear in the list. -
Create a new ambari database to hold the transferred data.
create database ambari;
-
Exit the PostgreSQL interactive terminal.
\q