码迷,mamicode.com
首页 > 其他好文 > 详细

hadoop-11-ambari-server安装

时间:2017-11-02 14:28:57      阅读:200      评论:0      收藏:0      [点我收藏+]

标签:hadoop   conf   flush   use   ambari   resources   serve   nbsp   .sql   

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安装

标签:hadoop   conf   flush   use   ambari   resources   serve   nbsp   .sql   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!