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

Ambari2.7.3和HDP3.1.4在线安装

时间:2020-04-12 16:19:28      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:rto   安装mysql   char   hive   oop   密码   file   update   art   

安装jdk
http://www.cnblogs.com/libin2015/p/8086047.html
 
linux设置
配置hosts
vim /etc/hosts
192.168.1.9 Hadoop01
ssh免密
ssh-keygen -t rsa
ssh-copy-id -i ~/.ssh/id_rsa.pub root@Hadoop01
修改文件描述符限制
vim /etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
* soft nproc 131072
* hard nproc 131072
关闭SELinux
vi /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled 
关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service
修改主机为英文
vi /etc/locale.conf
LANG="en_US.UTF-8"

 

安装mysql
https://www.cnblogs.com/libin2015/p/12685156.html
 
初始化mysql
CREATE DATABASE ambari;  
use ambari;  
CREATE USER ambari@% IDENTIFIED BY ambari123;  
GRANT ALL PRIVILEGES ON *.* TO ambari@%;  
CREATE USER ambari@localhost IDENTIFIED BY ambari123;  
GRANT ALL PRIVILEGES ON *.* TO ambari@localhost;  
CREATE USER ambari@hadoop01 IDENTIFIED BY ambari123;  
GRANT ALL PRIVILEGES ON *.* TO ambari@hadoop01;  
FLUSH PRIVILEGES;  
source /var/lib/ambari-server/resources/Ambari-DDL-MySQL-CREATE.sql 
CREATE DATABASE hive;
use hive;
CREATE USER hive@% IDENTIFIED BY ambari123;
GRANT ALL PRIVILEGES ON *.* TO hive@%;
CREATE USER hive@localhost IDENTIFIED BY ambari123;
GRANT ALL PRIVILEGES ON *.* TO hive@localhost;
CREATE USER hive@hadoop01 IDENTIFIED BY ambari123;
GRANT ALL PRIVILEGES ON *.* TO hive@hadoop01;
FLUSH PRIVILEGES; 

CREATE DATABASE oozie;
use oozie;  CREATE USER oozie@% IDENTIFIED BY ambari123;
GRANT ALL PRIVILEGES ON *.* TO oozie@%;  
CREATE USER oozie@localhost IDENTIFIED BY ambari123;  
GRANT ALL PRIVILEGES ON *.* TO oozie@localhost;  
CREATE USER oozie@hadoop01 IDENTIFIED BY ambari123;  
GRANT ALL PRIVILEGES ON *.* TO oozie@hadoop01;  
FLUSH PRIVILEGES;

 

这里我们需要在数据库中分别创建ambari数据库和ambari用户,注意这里有一个坑:数据库密码只能输入字符数字和 _下划线,还有-减号。不能包含特殊字符,否则会报以下错误信息:
Enter Database Password (bigdata):
Invalid characters in password. Use only alphanumeric or _ or - characters12
而MySQL 5.7默认安全策略是中级的,需要有特殊字符,这个可以通过以下命令进行修改,使用root用户登录mysql数据库服务器:
set global validate_password_policy=0;
flush privileges;

 

在线安装ambari
wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.3.0/ambari.repo -O /etc/yum.repos.d/ambari.repo
yum repolist
yum install ambari-server -y

初始化设置setup

ambari-server setup
根据提示配置$JAVA_HOME,mysql数据库等信息
ambari-server setup --jdbc-db=mysql --jdbc-driver=/export/service/hdp/mysql-connector-java-5.1.47-bin.jar

mysql-connector-java-5.1.47-bin.jar下载地址:
https://downloads.mysql.com/archives/c-j/

启动

ambari-server start

访问Ambari web页面

默认端口8080,Username:admin Password:admin
http://192.168.1.9:8080

安装hdp3.1.4

根据提示操作即可,安装过程非常慢。。。
 
参考:
https://blog.csdn.net/z3225167/article/details/92803720
https://www.jianshu.com/p/c319bce45601
https://blog.csdn.net/qq_36160730/article/details/97007542
 

Ambari2.7.3和HDP3.1.4在线安装

标签:rto   安装mysql   char   hive   oop   密码   file   update   art   

原文地址:https://www.cnblogs.com/libin2015/p/12685429.html

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