为了使多个hadoop主机之间正常的通讯,须要关闭防火墙。 oop
使用以下命令来关闭IP防火墙 spa
service iptables stop ip
验证:service iptables status hadoop
结果以下图所示 table
这个时候虽然关闭了IP防火墙,可是它实际上是个服务,可能处于自动启动状态,下次启动电脑时就会再次启动,须要关闭其自动启动状态。咱们经过下面这个命令查看服务的启动状态。 iptables
chkconfig --list | grep iptables service
咱们须要完全关闭防火墙,避免后顾之忧,使用以下命令关闭防火墙 grep
chkconfig iptables off 防火墙
验证一下,咱们再次经过下面这个命令查看服务的启动状态。 im
chkconfig --list | grep iptables