Skip to main content

安装mysql-connector-java.jar

下载mysql repo

wget http://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm

安装mysql repo

rpm -ivh mysql57-community-release-el7-9.noarch.rpm

执行完成后会在/etc/yum.repos.d/目录下生成两个repo文件

mysql-community.repo
mysql-community-source.repo

更新yum缓存

yum clean all
yum makecache

安装mysql-connector-java


# 安装mysql-connector-java
yum install mysql-connector-java

# 运行以下
ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java.jar