CDH6.3.1及cloudera manager安装
一、准备
5台虚拟机 8核64g内存500G
1台拥有cdh安装文件的虚拟机
二、免密登录和NTP
1.通过ssh连接五台虚拟机
ssh root@(ip地址)
2.配置五台虚拟机主机名
vi /etc/hostname
删除所有内容,重新写入主机名hd1-hd5
reboot
3.修改hosts文件
echo " ip 主机名" >> /etc/hosts #修改hosts
vi /etc/hosts #查看是否修改完毕
echo " 10.49.255.22 hd1" >> /etc/hosts
echo " 10.49.255.23 hd2" >> /etc/hosts
echo " 10.49.255.24 hd3" >> /etc/hosts
echo " 10.49.255.25 hd4" >> /etc/hosts
echo " 10.49.255.26 hd5" >> /etc/hosts
sudo执行不了上面的命令,写一个脚本
vi host
echo " 10.49.255.22 hd1" >> /etc/hosts
echo " 10.49.255.23 hd2" >> /etc/hosts
echo " 10.49.255.24 hd3" >> /etc/hosts
echo " 10.49.255.25 hd4" >> /etc/hosts
echo " 10.49.255.26 hd5" >> /etc/hosts
sudo /bin/bash host
就可以修改了
4.关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
systemctl status firewalld #检查inactive(dead)
5.从原始虚拟机传输压缩包
scp * 用户名@ip:文件夹
scp * root@10.xxx.xxx.xxx:software
6.关闭selinux(所有节点)
vi /etc/selinux/config
将SELINUX=enforcing修改为SELINUX=disabled
7.配置ssh免密登录
在主机hd1输入命令:
ssh-keygen -t rsa
回车直到出现命令输入处
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys #将公钥追加到authorized_keys
chmod 600 ~/.ssh/authorized_keys #修改权限
scp -r ~/.ssh/