Backup Ambari
You must back up the current Ambari database. It creates a copy of the current Ambari database and meta information.
-
On the Ambari Server host, stop the original Ambari Server.
ambari-server stop
-
Create a directory to hold the database backups.
cd /tmp mkdir dbdumps/ cd dbdumps/
-
Create the database backups.
POSTGRES
MYSQLpg_dump [AMBARI_DB_USERNAME] -U [AMBARI_DB_USERNAME] -f pre_upgrade.sql Password: [AMBARI_DB_PASSWORD]
mysqldump [AMBARI_DB_NAME]-u [AMBARI_DB_USERNAME] > pre_upgrade.sql
Variable Description Default [AMBARI_DB_NAME] The database name. ambari [AMBARI_DB_USERNAME]
The database username.
ambari
[AMBARI_DB_PASSWORD]
The database password.
bigdata
-
Create a backup of the Ambari Server properties.
/etc/ambari-server/conf/ambari.properties /etc/ambari-agent/conf/ambari-agent.ini