Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
What
Set the Hadoop delegation token's service name as credential alias.
Why
In current implementation, Flink will use delegation token's service name or identifer as credential alias, refer to Flink code HadoopModule and Yarn Utils.
Firstly, I think we could use the same way to set credential alias, like delegation token's service name. It will be more clear.
Secondly, when fetching HDFS delegation token and then inject all tokens to current UserGroupInformation in Hadoop HDFS HA mode, it will cause the problem of overwriting the different delegation tokens with the same identifier, refer to code here.
When does the same identifier delegation tokens appear?
When in HDFS HA mode, Hadoop HA delegation tokens will have the same identifier(Refer to HDFS-9276), but its' service name is different. So we can use service name as alias.
The following figure from HDFS-9276 can show that the identifier of HA delegation token is the same.
Attachments
Attachments
Issue Links
- links to