[
https://issues.apache.org/jira/browse/HDFS-3308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258484#comment-13258484
]
Aaron T. Myers commented on HDFS-3308:
--------------------------------------
{code}
- this.nnAddr = NetUtils.createSocketAddrForHost(uri.getHost(),
uri.getPort());
+ this.nnAddr = NetUtils.createSocketAddr(uri.getAuthority(),
getDefaultPort());
{code}
This change concerns me a little bit. It seems like the right thing to do would
be to use the URI's port if it's present otherwise use the default port. Or am
I missing something?
> hftp/webhdfs can't get tokens if authority has no port
> ------------------------------------------------------
>
> Key: HDFS-3308
> URL: https://issues.apache.org/jira/browse/HDFS-3308
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: hdfs client
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Daryn Sharp
> Assignee: Daryn Sharp
> Priority: Critical
> Attachments: HDFS-3308.patch
>
>
> Token acquisition fails if a hftp or webhdfs filesystem is obtained with no
> port in the authority. Building a token service requires a port, and the
> renewer needs the port. The default port is not being used when there is no
> port in the uri.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira