Support Questions

Find answers, ask questions, and share your expertise

reinstall ambari or add existing HDP cluster in the new ambari

avatar
Contributor

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

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Shota Akhalaia

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

.

View solution in original post

5 REPLIES 5

avatar

@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.

avatar
Master Mentor

@Shota Akhalaia

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

.

avatar
Master Mentor

@Shota Akhalaia

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...

.

https://community.hortonworks.com/questions/96817/monitoring-non-ambari-cluster-health-and-status.ht...

.

avatar
Contributor

Thank you very much for reply such a great answers

avatar
New Contributor

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