bootstrapStandby无法连接错误

hdfs namenode -bootstrapStandby 同步metadata之前一定要确认防火墙没有问题(可以关闭sudo service iptables stop   关闭防火墙,sudo chkconfig iptables off  启动 自动关闭防火墙)并修改主机名sudo vim /etc/sysconfig/network 把hostname改为和hosts配置的同名(需要重启)。

然后非常重要的:重要的:重要的:开启主机器的namenode:./hadoop-daemon.sh start namenode

看到Storage directory /home/xxxx/name has been successfully formatted.表示成功同步。

猜你喜欢

转载自blog.csdn.net/cauchy8389/article/details/81625892
今日推荐