Hadoop HDFS NameNode
What is Port 9870?
Port 9870 is the default HTTP port for the Hadoop HDFS (Hadoop Distributed File System) NameNode web UI. The NameNode is the master server that manages the file system namespace and regulates access to files in HDFS. The web interface on port 9870 provides a dashboard showing cluster health, capacity, running/dead DataNodes, file system browsing, and HDFS log access. This port changed from 50070 in Hadoop 3.x. HDFS is the foundation of the Apache Hadoop ecosystem, enabling distributed storage across thousands of commodity servers for big data processing with MapReduce, Spark, and other computation frameworks.
Common Uses
- HDFS NameNode web interface
- Cluster health and capacity monitoring
- HDFS file system browsing
- DataNode management and monitoring
Technical Details
Copy-paste commands to check port 9870 (Hadoop HDFS NameNode) from your terminal
Test connectivity
nc -zv example.com 9870
curl -v --max-time 5 http://example.com:9870/
telnet example.com 9870
nmap -p 9870 -sV example.com
(echo > /dev/tcp/example.com/9870) 2>/dev/null && echo "open" || echo "closed"
Open port in firewall
sudo ufw allow 9870/tcp
sudo iptables -A INPUT -p tcp --dport 9870 -j ACCEPT
sudo firewall-cmd --permanent --add-port=9870/tcp && sudo firewall-cmd --reload
Security Considerations
Enable Kerberos authentication for Hadoop. The NameNode web UI should be restricted to admin access. Don't expose port 9870 to the internet. Implement HDFS ACLs and ranger policies for data access control. Use HTTPS for the web interface.
Popular Ports Reference
The most commonly used and referenced network ports