hadoop全分布式搭建6(2)
8.收尾格式化
1.在主节点master上对hadoop进行格式化
# hdfs namenode -format
如下图,则格式化成功
2.关闭防火墙(在master,slave1,slave2上都要)
# firewall-cmd --state
# systemctl stop firewalld.service
若firewall-cmd --state出现running,表明防火墙开启着,出现not running表明防火墙关闭
3.启动hadoop
# cd /usr/local/software/hadoop/sbin
# ls
# ./start-all.sh (yes)
#jps ---(用jps查看是否对应集群规划)
master:
namenode
jps
datanode
nodemanager
resourcemanager
secondarynamenode
slave1:
datanode
jps
nodemanager
slave2:
datanode
jps
nodemanager
4.在google中查看节点是否live
输入网址为 xxx.xxx.xxx.xxx:50070
注意:xxx.xxx.xxx.xxx为master主机的ip地址
如上图则表明三个节点都live着,开启着