首页 > 其他 > 详细

hadoop-11-ambari-server安装

时间:2017-11-02 14:15:51      阅读:237      评论:0      收藏:0      [点我收藏+]

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;

hadoop-11-ambari-server安装

原文:http://www.cnblogs.com/stono/p/7771669.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!