Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-20047

AuthenticationTokenIdentifier should provide a toString

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      It'd be easier to debug things like MapReduce and Spark jobs if our AuthenticationTokenIdentifier provided a toString method.

      For comparison, here's an example of a MapReduce job that has both an HDFS delegation token and our delegation token:

      18/02/21 20:40:06 INFO mapreduce.JobSubmitter: Kind: HBASE_AUTH_TOKEN, Service: 92a63bd8-9e00-4c04-ab61-da8e606068e1, Ident: (org.apache.hadoop.hbase.security.token.AuthenticationTokenIdentifier@17)
      18/02/21 20:40:06 INFO mapreduce.JobSubmitter: Kind: HDFS_DELEGATION_TOKEN, Service: 172.31.118.118:8020, Ident: (token for some_user: HDFS_DELEGATION_TOKEN owner=some_user@EXAMPLE.COM, renewer=yarn, realUser=, issueDate=1519274405003, maxDate=1519879205003, sequenceNumber=23, masterKeyId=9)
      
      

      Stuff in TokenIdentifier is supposed to be public, so we should be fine to dump everything, similar to Hadoop's AbstractDelegationTokenIdentifier.

       

       

      Attachments

        1. HBASE-20047.master.v1.patch
          1 kB
          Ling Mao
        2. HBASE-20047.master.v0.patch
          1 kB
          Ling Mao

        Activity

          People

            maoling Ling Mao
            busbey Sean Busbey
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: