Ambari Server service migration
The migration is ready to configure the system environment to configure the system environment of the new server, which is the same as the old Ambari-Server node server, which mainly includes the following aspects: 1. The basic system depends on / usr/bin/yum install zlib zlib-devel libjpeg libjpeg-devel libpng libpng-devel gd gd-devel curl curl-devel freetype freetype-devel libxslt libxslt-devel libxml2 libxml2-devel ncurses ncurses-devel gcc gcc-c++ flex flex-devel libtiff-devel pam-devel libffi-devel e2fsprogs-devel openssl* ntpdate tree autoconf lrzsz uuid dstat bind-utils vim rsync net-tools wget-y 2, Ambari Yum source configuration, / etc/yum.repo.d/ambari.repo 3. Configure the new server for SSH secret-free authentication of all cluster nodes managed by Ambari; 4. Java running environment; JDK version and installation path, environment variables must be consistent; 5. Python running environment 1) / usr/bin/yum install python-setuptools python-devel-y 2) pip install psutil (you can also download the psutil dependency module installation package for installation) 6. Install the database (if you do not need to migrate the database, this step is not required) 1) yum install mariadb-server mariadb- y; 2) download JDBC Driver and store it in / usr/share/java 3) create ambari database and authorize; 7. Synchronize host / etc/hosts files; start migration install ambari-serveryum install ambari-server- y settings ambari-serverambari-server setup initialization data table mysql-uambari-p123456-D ambari ambari.sqlscp ambari.sql new-ambari-server-node:~/ to restore backup data to new node database mysql-uambari-p123456