Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

reinstall ambari or add existing HDP cluster in the new ambari

Solved Go to solution

reinstall ambari or add existing HDP cluster in the new ambari

New 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

Accepted Solutions

Re: reinstall ambari or add existing HDP cluster in the new ambari

Super 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

.

5 REPLIES 5

Re: reinstall ambari or add existing HDP cluster in the new ambari

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

Re: reinstall ambari or add existing HDP cluster in the new ambari

Super 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

.

Re: reinstall ambari or add existing HDP cluster in the new ambari

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

.

Highlighted

Re: reinstall ambari or add existing HDP cluster in the new ambari

New Contributor

Thank you very much for reply such a great answers

Re: reinstall ambari or add existing HDP cluster in the new ambari

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

Don't have an account?
Coming from Hortonworks? Activate your account here