1、重新格式化namenode
cd ~rm -rf namemkdir namerm -rf hadoop-2.7.2/logs/mkdir hadoop-2.7.2/logs/ hadoop-2.7.2/bin/hdfs namenode -format
2、检查hosts文件
vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain610.20.77.172 hadoop-master10.20.77.173 hadoop-slave110.20.77.174 hadoop-slave210.20.77.175 hadoop-slave3
3、关闭防火墙
systemctl stop firewalld.service # 关闭firewallsystemctl disable firewalld.service # 禁止firewall开机启动