hadoop集群服务器配置注意事项

1、使用root账户,一劳记逸,远离权限问题。

2、关闭防火墙,命令:service iptables stop 

  想永久关闭,命令为:chkconfig iptables off

  查看防火墙状态,命令为: service iptables status

3、使用宿主机器通过ssh访问虚拟机失败,但可以ping。可能原因:

  ssh没启动, 命令为:service sshd start 

  想开机启动,命令为:chkconfig sshd on

4、修改主机名,有两个地方:

  命令:vi /etc/hosts 把集群所有的机器IP及主机名都配置在这里。以便hadoop使用和ssh使用。

  命令:vi /etc/sysconfig/network 在这里面把hostname修改为本机器的主机名。

5、在修改/etc/profile文件后一定要记得使用命令 souce /etc/profile 来启用新配置。

原文地址:https://www.cnblogs.com/mowei/p/6609498.html