Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
Reviewed
Description
Different with YARN-5098 and YARN-5302, this problem happens when AM submits a startContainer request with a new HDFS token (say, tokenB) which is not managed by YARN, so two tokens exist in the credentials of the user on NM, one is tokenB, the other is the one renewed on RM (tokenA). If tokenB is selected when connect to HDFS and tokenB expires, exception happens.
Supplementary: this problem happen due to that AM didn't use the service name as the token alias in credentials, so two tokens for the same service can co-exist in one credentials. TokenSelector can only select the first matched token, it doesn't care if the token is valid or not.