[
https://issues.apache.org/jira/browse/HDFS-9427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15004956#comment-15004956
]
Arpit Agarwal commented on HDFS-9427:
-------------------------------------
List of settings that default to ephemeral ports:
{code}
public static final String DFS_NAMENODE_SECONDARY_HTTP_ADDRESS_DEFAULT =
"0.0.0.0:50090";
public static final String DFS_NAMENODE_SECONDARY_HTTPS_ADDRESS_DEFAULT =
"0.0.0.0:50091";
public static final int DFS_DATANODE_DEFAULT_PORT = 50010;
public static final int DFS_DATANODE_HTTP_DEFAULT_PORT = 50075;
public static final int DFS_DATANODE_HTTPS_DEFAULT_PORT = 50475;
public static final int DFS_DATANODE_IPC_DEFAULT_PORT = 50020;
{code}
Changing these values for 2.x will be incompatible since we'd break deployments
on upgrade that rely on defaults. Thanks to [~elserj] for reporting this.
> HDFS should not default to ephemeral ports
> ------------------------------------------
>
> Key: HDFS-9427
> URL: https://issues.apache.org/jira/browse/HDFS-9427
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: datanode, namenode
> Affects Versions: 3.0.0
> Reporter: Arpit Agarwal
> Labels: Incompatible
>
> HDFS defaults to ephemeral ports for the some HTTP/RPC endpoints. This can
> cause bind exceptions on service startup if the port is in use.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)