最近发生了两次比较尴尬的问题排查,最终结论都是iptables配置错误,影响服务(kafka、spark)组件之间的通信。使用Ambari安装HDP集群的时候,曾强列建议关闭网络防火墙,但是运维的同学感觉完全关闭,服务于裸奔无异,果断还是保留着 iptables 的配置,只是将规则放宽到内网全部端口可用。下边总结一下 iptables 的基本原理以及常见用法。 有问题找男人,先看一下 iptables 的 man page Iptables and ip6tables are used to set up, maintain, and inspect the tables of IPv4 and IPv6 packet filter rules in the Linux kernel. Several different tables may be defined. Each table contains a number of built-in chains and may...
Continue reading...