配置虚拟机网络
创建虚拟机
20G 4G内存 初始化用户名和密码 zhao 123456
克隆拷贝2个虚拟机
配置内存为2G
修改主机名和固定IP
hostnamectl set-hostname node1
hostnamectl set-hostname node2
vim /etc/sysconfig/network-scripts/ifcfg-ens33
systemctl stop network
systemctl start network
systemctl restart network
![在这里插
IPADDR=“192.168.131”
IPADDR=“192.168.88.132”
NETMASK=“255.255.255.0”
GATEWAY=“182.168.88.2”
DNS1=“192.168.88.2”
systemctl stop network
systemctl start network
ssh免密登录
ssh-keygen -t rsa -b 4096
root@node1: cd .ssh/
root@node1: ll
root@node1: cd 默认跳转到root根用户
ssh-copy-id node1 回车
ssh-copy-id node2 回车
ssh-copy-id node3 回车
三台机器都有执行上述命令
测试: ssh node3
root@node3:
hadoop免密互通
useradd hadoop
passwd 123456
su - hadoop
123456
ssh-keygen -t rsa -b 4096
ssh-copy-id node1 回车
ssh-copy-id node2 回车
ssh-copy-id node3 回车