Skip to main content
KuldeepK
Gold ⭐️
Gold ⭐️
Nov 1, 2016 8:38 PM UTC

Run Hadoop Happily in O.S. Firewall Controlled Environment

  • Oct 5, 2026 9:35 AM UTC
  • 0 replies
  • 2699 views
  • Translate All

Step1: Please allow below ports from your OS firewall for Ambari.

https://ambari.apache.org/1.2.5/installing-hadoop-using-ambari/content/reference_chap2_7.html

.

Step2: Please go though the required component and allow below ports from your OS firewall for HDP.

https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_HDP_Reference_Guide/content/accumulo-ports.html

.

Step 3: In order to allow YARN jobs to run successfully, we need to add custom TCP port range to the YARN configuration.

Login to Ambari UI --> Select Mapreduce2 --> Configs --> Customer mapred-site --> Add/Modify below property

yarn.app.mapreduce.am.job.client.port-range=32000-65000

Notes:

1. 32000-65000 is the port range which will be used by Application Master to connect to Node Managers. .

2. You can increase the number of ports based on job volume.

.

How to add exception in Centos7 firewall?

Example for Step 3.

#firewall-cmd --permanent --zone=public --add-port=32000-65000/tcp

#firewall-cmd --reload

Please comment if you have any feedback/questions/suggestions. Happy Hadooping!! :)