[ https://issues.apache.org/jira/browse/HDFS-3255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13252621#comment-13252621 ]
Daryn Sharp commented on HDFS-3255: ----------------------------------- I should clarify: It "works" but multiple tokens are fetched for the HA filesystem. The reason is the {{TokenCache}} builds a map of tokens keyed on their service. The value from {{fs.getCanonicalServiceName()}} is used to check the map for a pre-existing token. Since the canonical service doesn't match the value of {{token.getService()}}, it repeatedly fetches a token for a HA filesystem. > HA DFS returns wrong token service > ---------------------------------- > > Key: HDFS-3255 > URL: https://issues.apache.org/jira/browse/HDFS-3255 > Project: Hadoop HDFS > Issue Type: Bug > Components: ha, hdfs client > Affects Versions: 2.0.0 > Reporter: Daryn Sharp > Assignee: Daryn Sharp > Priority: Critical > Attachments: HDFS-3255.patch > > > {{fs.getCanonicalService()}} must be equal to > {{fs.getDelegationToken(renewer).getService()}}. When HA is enabled, the DFS > token's service is a logical uri, but {{dfs.getCanonicalService()}} is only > returning the hostname of the logical 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