Created 03-16-2018 08:34 AM
Hi all
I have a question if I it is possible install new ambari server and then add existing working HDP 2.6 cluster in it, in case if existing ambari is damaged or completely lost?
If it is possible then will it change or reset HDP services existing configurations?
Thank you
Created 03-16-2018 08:43 AM
If you have Ambari DB dump then you can install ambari to any new host or on the same host once again.
The DB dump contains all the HDP configs and cluster details.
0. Stop all ambari-agents on all hosts.
1. You need to import the DB dump to the DB.
2. Install ambari-server any existing (or new) host.
3. Run the ambari server setup and then point to the same Database where you imported the DB.
# ambari-server setup Choose Existing database while setting up the DB part and point to your DB instance
4. Now edit all the ambari-agent hosts edit the file "/etc/ambari-agent/conf/ambari-agent.ini" and then point it to new ambari server host.
Example:
# grep 'hostname' /etc/ambari-agent/conf/ambari-agent.ini hostname = amb25101.example.com
.
5. Start the ambari Server
# ambari-server start
6. Start ambari Agents on all hosts.
# ambari-agent start
.
Created 03-16-2018 08:37 AM
@Shota Akhalaia, You can re-install/recover the ambari for a existing cluster only if you have the backup of ambari database. Otherwise there is no easy way to point existing cluster to existing HDP cluster. The only option is to install a fresh ambari along with fresh HDP.
Created 03-16-2018 08:43 AM
If you have Ambari DB dump then you can install ambari to any new host or on the same host once again.
The DB dump contains all the HDP configs and cluster details.
0. Stop all ambari-agents on all hosts.
1. You need to import the DB dump to the DB.
2. Install ambari-server any existing (or new) host.
3. Run the ambari server setup and then point to the same Database where you imported the DB.
# ambari-server setup Choose Existing database while setting up the DB part and point to your DB instance
4. Now edit all the ambari-agent hosts edit the file "/etc/ambari-agent/conf/ambari-agent.ini" and then point it to new ambari server host.
Example:
# grep 'hostname' /etc/ambari-agent/conf/ambari-agent.ini hostname = amb25101.example.com
.
5. Start the ambari Server
# ambari-server start
6. Start ambari Agents on all hosts.
# ambari-agent start
.
Created 03-16-2018 08:46 AM
If there was no Ambari Server installed already or if the Ambari DB is lost (corrupted / no backups) then Ambari Takeover is a process which can be used. But it completely depends on which kind of components you have installed and it is usually a tough process to setup Ambari over an existing HDP cluster.
But it can be achieved. Similar threads you can find here: https://community.hortonworks.com/questions/34197/can-ambari-manage-an-exists-hadoop-cluster-an-upda...
.
.
Created 03-16-2018 09:02 AM
Thank you very much for reply such a great answers
Created 04-25-2019 09:47 AM
Hi Team,
I have same problem like @Shota Akhalaia in AWS ambari-server instance, Please suggest us how to avoid this in future and what are preventive measures should takeoff to avoid disaster.
Regards,
Tayyab