[ https://issues.apache.org/jira/browse/MAPREDUCE-5819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ted Yu updated MAPREDUCE-5819: ------------------------------ Description: Currently mergeBinaryTokens() is called by every invocation of obtainTokensForNamenodesInternal(FileSystem, Credentials, Configuration) in the loop of obtainTokensForNamenodesInternal(Credentials, Path[], Configuration). This can be simplified such that mergeBinaryTokens() is called only once in obtainTokensForNamenodesInternal(Credentials, Path[], Configuration). was: Currently mergeBinaryTokens() is called by every invocation of obtainTokensForNamenodesInternal(FileSystem, Credentials, Configuration) in the loop of obtainTokensForNamenodesInternal(Credentials, Path[], Configuration). This can be simplified so that mergeBinaryTokens() is called only once in obtainTokensForNamenodesInternal(Credentials, Path[], Configuration). > Binary token merge should be done once in > TokenCache#obtainTokensForNamenodesInternal() > --------------------------------------------------------------------------------------- > > Key: MAPREDUCE-5819 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-5819 > Project: Hadoop Map/Reduce > Issue Type: Improvement > Components: security > Reporter: Ted Yu > Assignee: Ted Yu > Priority: Minor > Labels: BB2015-05-TBR > Attachments: mapreduce-5819-v1.txt > > > Currently mergeBinaryTokens() is called by every invocation of > obtainTokensForNamenodesInternal(FileSystem, Credentials, Configuration) in > the loop of obtainTokensForNamenodesInternal(Credentials, Path[], > Configuration). > This can be simplified such that mergeBinaryTokens() is called only once in > obtainTokensForNamenodesInternal(Credentials, Path[], Configuration). -- This message was sent by Atlassian JIRA (v6.3.4#6332)