[
https://issues.apache.org/jira/browse/HDFS-11525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15923577#comment-15923577
]
Surendra Singh Lilhore commented on HDFS-11525:
-----------------------------------------------
I feel this exception is coming from {{ServerConnector}}. In trunk code bind
exception for this already handled in {{HttpServer2#bindForPortRange(...)}}.
{code}
try {
bindListener(listener);
return;
} catch (BindException ex) {
// Ignore exception. Move to next port.
bindException = ex;
}
}
throw constructBindException(listener, bindException);
{code}
> "Address already in use" has no exact conflict information
> ----------------------------------------------------------
>
> Key: HDFS-11525
> URL: https://issues.apache.org/jira/browse/HDFS-11525
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: datanode
> Affects Versions: 2.7.3
> Reporter: yuxh
>
> when I found datanode didnot start successful, I checked log :
> 2017-03-10 09:36:08,455 FATAL
> org.apache.hadoop.hdfs.server.datanode.DataNode: Exception in secureMain
> java.net.BindException: Address already in use
> at sun.nio.ch.Net.bind0(Native Method)
> at sun.nio.ch.Net.bind(Net.java:433)
> at sun.nio.ch.Net.bind(Net.java:425)
> which doesn't show which port has been used. I have to try in another machine
> to find port 50075 is need to start up datanode.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]