[
https://issues.apache.org/jira/browse/HDFS-11700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15982289#comment-15982289
]
Anbang Hu commented on HDFS-11700:
----------------------------------
{{DFS_NAMENODE_BACKUP_ADDRESS_KEY}} is set in
{{BackupNode.setRpcServerAddress}}:
{code:borderStyle=solid}
@Override // NameNode
protected void setRpcServerAddress(Configuration conf,
InetSocketAddress addr) {
conf.set(BN_ADDRESS_NAME_KEY, NetUtils.getHostPortString(addr));
}
{code}
> testBackupNodePorts doesn't pass on Windows machine
> ---------------------------------------------------
>
> Key: HDFS-11700
> URL: https://issues.apache.org/jira/browse/HDFS-11700
> Project: Hadoop HDFS
> Issue Type: Bug
> Environment: Windows 10
> Reporter: Anbang Hu
>
> In TestHDFSServerPorts.testBackupNodePorts, there are two attempts at
> starting backup node.
> *Attempt 1*:
> 1) It binds namenode backup address with 0:
> {quote}
> backup_config.set(DFSConfigKeys.DFS_NAMENODE_BACKUP_ADDRESS_KEY, THIS_HOST);
> {quote}
> 2) It sets namenode backup address with an available port X.
> 3) It fails rightfully due to using the same http address as active namenode.
> *Attempt 2*:
> 1) It tries to reuse port X as namenode backup address.
> 2) It fails to bind to X because Windows does not release port X properly
> after *Attempt 1* fails.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]