TCPRegistered PortFirewall: Usually Closed
9870

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

Port Number9870
ProtocolTCP
CategoryRegistered
Service NameHadoop HDFS NameNode
Default FirewallUsually Closed
Port Test Commands

Copy-paste commands to check port 9870 (Hadoop HDFS NameNode) from your terminal

Test connectivity

Netcat (nc)Check if TCP port is reachable
nc -zv example.com 9870
curl (HTTP)Test HTTP response on this port
curl -v --max-time 5 http://example.com:9870/
TelnetBasic TCP port connectivity check
telnet example.com 9870
nmapScan port 9870 with service detection
nmap -p 9870 -sV example.com
Bash /dev/tcpPure bash TCP check (no extra tools needed)
(echo > /dev/tcp/example.com/9870) 2>/dev/null && echo "open" || echo "closed"

Open port in firewall

UFW (Ubuntu / Debian)
sudo ufw allow 9870/tcp
iptables
sudo iptables -A INPUT -p tcp --dport 9870 -j ACCEPT
firewalld (RHEL / CentOS)
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

Related Ports