For Ambari to communicate during setup with the hosts it deploys to and manages, certain ports must be open and available. The easiest way to do this is to temporarily disable iptables, as follows:

RHEL/CentOS/Oracle/Amazon Linux

  1. systemctl disable firewalld
  2. service firewalld stop

SLES

  1. rcSuSEfirewall2 stop
  2. chkconfig SuSEfirewall2_setup off

Ubuntu

  1. sudo ufw disable
  2. sudo iptables -X
  3. sudo iptables -t nat -F
  4. sudo iptables -t nat -X
  5. sudo iptables -t mangle -F
  6. sudo iptables -t mangle -X
  7. sudo iptables -P INPUT ACCEPT
  8. sudo iptables -P FORWARD ACCEPT
  9. sudo iptables -P OUTPUT ACCEPT

Debian

  1. sudo iptables -X
  2. sudo iptables -t nat -F
  3. sudo iptables -t nat -X
  4. sudo iptables -t mangle -F
  5. sudo iptables -t mangle -X
  6. sudo iptables -P INPUT ACCEPT
  7. sudo iptables -P FORWARD ACCEPT
  8. sudo iptables -P OUTPUT ACCEPT

You can restart iptables after setup is complete. If the security protocols in your environment prevent disabling iptables, you can proceed with iptables enabled, if all required ports are open and available.

Ambari checks whether iptables is running during the Ambari Server setup process. If iptables is running, a warning displays, reminding you to check that required ports are open and available. The Host Confirm step in the Cluster Install Wizard also issues a warning for each host that has iptables running.