第3章 Hadoop運行環境搭建
3.1 虛擬機環境準備
主機 | 從機 | 從機 | |
---|---|---|---|
主機名 | hadoop104 | hadoop105 | hadoop106 |
hostname | hadoop104 | hadoop105 | hadoop106 |
IP地址 | 192.168.153.104 | 192.168.153.105 | 192.168.153.106 |
3.2防火牆
查看防火牆狀態
firewall-cmd --state
停止firewall
systemctl stop firewalld.service
禁止firewall開機啓動
systemctl disable firewalld.service
3.3查看網絡配置並更改網絡配置
重啓服務
service network restart
3.4更改selinux
vi /etc/selinux/config
將SELINUX=enforcing改爲SELINUX=disabled
3.4 更改sudoers
root用戶下運行visudo命令