Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13951

HDFS DelegationTokenFetcher can't print non-HDFS tokens in a tokenfile

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.2.0
    • 3.3.0
    • tools
    • None

    Description

      the fetchdt command can fetch tokens for filesystems other than hdfs (s3a, abfs, etc), but it can't print them, as it assumes all tokens in the file are subclasses of org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier & uses this fact in its decoding. It deserializes the token byte array without checking kind and so ends up with invalid data.

      Fix: ask the tokens to decode themselves; only call toStableString() if an HDFS token.

      Attachments

        1. HDFS-13951-001.patch
          6 kB
          Steve Loughran

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            stevel@apache.org Steve Loughran
            stevel@apache.org Steve Loughran
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment