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
Attachments
Issue Links
- is part of
-
HADOOP-14556 S3A to support Delegation Tokens
- Resolved
- is related to
-
HDFS-14060 HDFS fetchdt command to return error codes on success/failure
- Open
-
HADOOP-15808 Harden Token service loader use
- Resolved