vim /etc/hosts
172.16.13.129 129.master
172.16.13.130 130.slave
172.16.13.131 131.slave
永久修改 服务器name
hostnamectl set-hostname yourhostname
服务器设置
systemctl stop firewalld 关闭防火墙
systemctl disable firewalld 禁止防火墙开机自启
vim /etc/selinux/config —> SELINUX=disabled (修改)
1、查看firewall服务状态
systemctl status firewalld
2、查看firewall的状态
firewall-cmd --state
3、开启、重启、关闭、firewalld.service服务
# 开启
service firewalld start
# 重启
service firewalld restart
# 关闭
service firewalld stop
mysql 数据库 5,7
create database cmservergh default charset utf8 collate utf8_general_ci;
grant all on cmservergh.* to 'cmserveruser'@'%' identified by 'root';
create database metastore default charset utf8 collate utf8_general_ci;
grant all on metastore.* to 'hiveuser'@'%' identified by 'root';
create database amon default charset utf8 collate utf8_general_ci;
grant all on amon.* to 'amonuser'@'%' identified by 'root';
create database rman default charset utf8 collate utf8_general_ci;
grant all on rman.* to 'rmanuser'@'%' identified by 'root';
create database oozie default charset utf8 collate utf8_general_ci;
grant all on oozie.* to 'oozieuser'@'%' identified by 'root';
create database hue default charset utf8 collate utf8_general_ci;
grant all on hue.* to 'hueuser'@'%' identified by 'root';
上面异常处理:
2.1.13. 安装Httpd服务(manager)
yum install httpd
systemctl start httpd
systemctl enable httpd.service 设置httpd服务开机自启
createrepo . 命令 :创建repodata:
构建本地私服
createrepo. 命令 :创建repodata:
cm6/6.2.0/redhat7
vim /etc/yum.repos.d/cloudera-manager.repo 配置本地yum 源
sudo wget --recursive --no-parent --no-host-directories https://archive.cloudera.com/cm6/6.2.0/redhat7/ -P /var/www/html/cloudera-repos
master 执行
yum install -y cloudera-manager-daemons fcloudera-manager-agent cloudera-manager-server
systemctl start cloudera-scm-server
http://主机ip:7180/cmf/login 访问
systemctl start cloudera-scm-agent
参考
https://www.cnblogs.com/swordfall/p/10816797.html
https://www.cnblogs.com/duxingren/p/12739865.html