配置虚拟机网络
创建虚拟机
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.88.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
192.168.88.131 node1
192.168.88.132 node2
配置window本地域名解析
window + R
C:\WINDOWS\system32\drivers\etc
第一个host vcode
192.168.88.131 node1
192.168.88.132 node2
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 node2
root@node2:
hadoop免密互通
useradd hadoop
passwd hadoop
123456
123456
su - hadoop
123456
ssh-keygen -t rsa -b 4096
ssh-copy-id node1 回车
ssh-copy-id node2 回车