First, install and use MARIADB as the storage database for Ambari, Hive, Hue.
Yum Install mariadb-server mariadb
Start, view status, check if MARIADB is installed successfully
Systemctl Start Mariadbsystemctl Status mariadb
Second, the configuration mariadb
1, first stop the operation of the MARIADB service
Systemctl Stop MARIADB
2, edit/etc/my.cnf under the [Mysqld] section, add the following lines of line configuration:
Transaction-isolation = read-550= O_direct
After you save the exit, configure the MARIADB service to boot up and restart the MARIADB
Systemctl Enable Mariadbsystemctl start mariadb
3, run MARIADB Security Configuration script/usr/bin/mysql_secure_installation, [email protected], password is set to Hadoop
/usr/bin/mysql_secure_installation
Authorize user root to connect to MySQL server from any host using password passwd
Mysql-uroot-'root'@'%'* * * * ' With GRANT option;flush privileges;
Install MySQL JDBC Driver connection MariaDB
Download, unzip, copy Mysql-connector-java-5.1.46-bin.jar to/usr/share/java/, and rename:
wget https://dev.mysql.com/get/downloads/connector-j/mysql-connector-java-5.1.46.tar.gz tar zxvf mysql-connector-java-5.1. . Tar . gzcd MySQL-connector-java-5.1. /CP mysql-connector-java-5.1. -bin.jar/usr/share/java/mysql-connector-java.jar
Build HAWQ Data Warehouse based on "centos-7+ Ambari 2.7.0 + HDP 3.0"--MARIADB installation Configuration