hadoop-11-ambari-server安装

Posted stono

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了hadoop-11-ambari-server安装相关的知识,希望对你有一定的参考价值。

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安装的主要内容,如果未能解决你的问题,请参考以下文章

MySQL免安装版与安装版区别

下载完安装包怎么安装

分清全局安装与本地安装

安装一个软件提示,该安装包未包含任何证书,安装失败,怎么解决

把两个安装文件做成一个安装包,怎么做

myeclipse怎么安装怎样安装myeclipse