hadoop-11-ambari-server安装
#ambari 安装
yum install ambari-server
cd mysql-5.7.18/
cp mysql-connector-java-5.1.41-bin.jar /usr/share/java
chmod 755 mysql-connector-java-5.1.41-bin.jar
cp mysql-connector-java.jar /var/lib/ambari-server/resources
chmod 755 mysql-connector-java.jar
cp /usr/share/java/mysql-connector-java.jar /var/lib/ambari-server/resources/mysql-jdbc-driver.jar
vi /etc/ambari-server/conf/ambari.properties
add:
server.jdbc.driver.path=/usr/share/java/mysql-connector-java.jar
CREATE DATABASE ambari;
use ambari;
CREATE USER 'ambari'@'%' IDENTIFIED BY 'ambari';
GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'%';
CREATE USER 'ambari'@'localhost' IDENTIFIED BY 'bigdata';
GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'localhost';
CREATE USER 'ambari'@'hjhdcx-1' IDENTIFIED BY 'bigdata';
GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'hjhdcx-1';
FLUSH PRIVILEGES;
source /var/lib/ambari-server/resources/Ambari-DDL-MySQL-CREATE.sql
show tables;