Hadoop--1. Environmental preparation
1. Memory requirements are greater than 2G
Less than 2G will jam the screen when analyzing the data.
two。 Modify hostname: master, slave
3. Configure hostname
All machines must be configured with hosts
192.168.0.2 master
192.168.0.3 slave
.
4. Close selinux
[root@master ~] # vim / etc/selinux/config
Modify the following:
Change SELINUX=Enforcing to: SELINUX=disabled
[root@master ~] # getenforce 0
5. Close iptables (6.x)
[root@master ~] # service iptables stop
Or
[root@master] # iptables-F
[root@master ~] # service iptables save
6. Close firewalld
Lsystemctl disable firewalld
Lsystemctl stop firewalld
Lyum install-y iptables-services
Lsystemctl enable iptables
Lsystemctl start iptables
Lservice iptables save