Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-22534

Set delegation token's service name as credential alias

    XMLWordPrintableJSON

Details

    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

        1. debug2.PNG
          163 kB
          Junfan Zhang

        Issue Links

          Activity

            People

              zuston Junfan Zhang
              zuston Junfan Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: