Computers are able to distinguish between various traffic types with the use of ports. A default open port is a port number that is preconfigured to accept internet connections and packets from specific services using protocols like the User Datagram Protocol (UDP), Stream Control Transmission Protocol (SCTP), Datagram Congestion Control Protocol (DCCP), or Transmission Control Protocol (TCP).
In this essay, we’ll discuss Hadoop 3.x, which has a number of modified ports for various services. For example, NameNode ports 50470, 50070, and 8020 are changed to 9871, 9870, and 9820 respectively. Similarly, Secondary NameNode ports 50090 and 50091 have been changed to 9868 and 9869 respectively. DataNode ports 50010, 50020, 50075, and 50475 have been changed to 9866, 9867, 9864, and 9865 respectively.
Here is more information regarding Hadoop ports in detail.
| Service | Servers | Hadoop 1 & 2 Ports | Hadoop 3 Ports | Protocol | Config Parameters | Description |
| NameNode WebUI | Master Nodes (NameNode and any back-up NameNodes) | 50070 | 9870 | http | dfs.http.address | Web UI to look at current status of HDFS, explore file system |
| 50470 | 9871 | https | Secure http service | |||
| NameNode metadata service | Master Nodes (NameNode and any back-up NameNodes) | 8020 / 9000 | IPC | Embedded in URI specified by fs.default.name | File system metadata operations | |
| DataNode | All Slave Nodes | 50075 | 9864 | http | dfs.datanode.http .address | DataNode WebUI to access the status, logs etc. |
| 50475 | 9865 | https | dfs.datanode.https .address | Secure http service | ||
| 50010 | 9866 | dfs.datanode.address | Data transfer | |||
| 50020 | 9867 | IPC | dfs.datanode.ipc .address | Metadata operations | ||
| Secondary NameNode | Secondary NameNode and any backup Secondary NameNode | 50090 | 9868 | http | dfs.secondary.http .address | Checkpoint for Namenode metadata |