1. vi /etc/hosts
html
192.168.0.71 hadoop-master 192.168.0.72 hadoop-slave1 192.168.0.73 hadoop-slave2
2. set ssh connect no need password(master and salve)ssh
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
3. set env virablesoop
vi /etc/profilecode
export HADOOP_HOME=/usr/local/hadoop export PATH=$PATH:$HADOOP_HOME/bin
source /etc/profile
3. edit config fileshtm
http://www.ityouknow.com/hadoop/2017/07/24/hadoop-cluster-setup.htmlhadoop