How to move ambari server from one host to another


Ambari Server Movement


Steps:

  1. ambari-server stop & ambari-agent stop (on all hosts)

  1. Mysql DB backup:
mysqldump ambari> /root/backup_ambari.sql

  1. Install ambari-server on the new host, have the ambari repo in /etc/yum.repos.d
 yum -y install ambari-server

If you need mysql to installed on the same host as well. Then,
yum install mysql-server  
/etc/init.d/mysqld start

Note: {Make sure this installs the right msql version supported by ambari}

To restore the "Ambari" database on new host, login to mysql as root and

Mysql>use mysql;
Mysql> create database ambari;
Mysql> create user ambari identified by 'somepassword';

mysql -u root  ambari < /root/backup_ambari.sql

  1. Ambari-server setup
  2. ambari-server start
  3. Need to run on all hosts of the cluster where agents are running

ambari-agent reset
Ex: ambari-agent reset c249-node3.squadron-labs.com

ambari-agent start

No comments:

Post a Comment

Boost Your Download Speed with lftp Segmentation

Looking for a faster way to download files via sftp to a Linux machine? Try using "lftp" instead. This tool offers segmented downl...

Other relevant topics