联网设置-spark集群搭建
![联网设置](https://upload-images.jianshu.io/upload_images/9987057-4021321e90c8b2e5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
联网设置
配置
安装三个虚拟机
hserver1
hserver2
hserver2
更改虚拟机的名字命令
hostname hserver1
主机的ip
169.254.254.6
查看命令:ipconfig
设置虚拟机的ip
目标
设置hserver1的ip
169.254.254.11
设置hserver2的ip
169.254.254.12
设置hserver3的ip
169.254.254.33
方法
点击有线连接-添加配置-IPv4
![1](https://upload-images.jianshu.io/upload_images/9987057-18707a5f18a8694f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
1
![2](https://upload-images.jianshu.io/upload_images/9987057-e6a2f615a2fb4f6c.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
2
ipv4
地址
169.254.254.33
子网掩码
255.255.255.0
网关
169.254.254.1
设置成手动
依次设置即可
169.254.254.11 hserver1
169.254.254.22 hserver2
169.254.254.33 hserver3
gedit /etc/hosts
192.168.2.11 hserver1
192.168.2.22 hserver2
192.168.2.33 hserver3