Ambari
Server Movement
Steps:
- ambari-server stop & ambari-agent stop (on all hosts)
- Mysql DB backup:
mysqldump
ambari> /root/backup_ambari.sql
- 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
- Ambari-server setup
- ambari-server start
- 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