Skip to main content
jhoward
Silver ⭐️
November 20, 2019
Solved

Ambari rebuild

Hi,

 

My Ambari server is offline (ambari.properties file is empty/virgin - don't ask 😞 ) but my cluster is functional, that is, HDFS is fine and so on. My Question is this, can I rebuild my Ambari server and "import" the running HDP cluster or do I have to start from scratch?

 

Thanks,

 

john

jsensharma
Platinum ⭐️⭐️
November 22, 2019

@jhoward 

1. How was the "/etc/ambari-server/conf/ambari.properties" file got deleted?
2. Do you have a backup of this file "amabri.properties" to use?

 

3. Ambari stores all the cluster informations inside it's Database.   So if your Database is not dropped (lost), you can try using a dummy "ambari.properties" of same version from any of your other working cluster by just changing the JDBC settings to point to your correct ambari DB host/port and with DB credentials.

The DB settings for ambari can be found from following command (in any of working ambari cluster) and then you can try to place those properties with correct Database values in your problematic ambari 

# grep 'jdbc' /etc/ambari-server/conf/ambari.properties

 

.

2 replies

jsensharma
Platinum ⭐️⭐️
Platinum ⭐️⭐️
November 22, 2019

@jhoward 

1. How was the "/etc/ambari-server/conf/ambari.properties" file got deleted?
2. Do you have a backup of this file "amabri.properties" to use?

 

3. Ambari stores all the cluster informations inside it's Database.   So if your Database is not dropped (lost), you can try using a dummy "ambari.properties" of same version from any of your other working cluster by just changing the JDBC settings to point to your correct ambari DB host/port and with DB credentials.

The DB settings for ambari can be found from following command (in any of working ambari cluster) and then you can try to place those properties with correct Database values in your problematic ambari 

# grep 'jdbc' /etc/ambari-server/conf/ambari.properties

 

.

Translate
jhoward
jhowardAuthor
Silver ⭐️
November 29, 2019

Thankfully the database was intact so this worked

Translate