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

can't renew HDFS tokens with only the hdfs client jar

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.8.1
    • Fix Version/s: 3.2.0, 3.1.1, 3.0.4
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      It looks like the meta inf file for the hdfs token renewer is in the hadoop-hdfs.jar rather then the hadoop-hdfs-client.jar. This prevents a client from renewing a token because the service loader doesn't find the DFSClient Renewer class and falls back to use the TrivialRenewer.

      You get an error like:
      17/10/16 21:08:15 WARN Token: No TokenRenewer defined for token kind HDFS_DELEGATION_TOKEN
      Exception in thread “main” java.lang.UnsupportedOperationException: Token renewal is not supported for HDFS_DELEGATION_TOKEN tokens
      at org.apache.hadoop.security.token.Token$TrivialRenewer.renew(Token.java:497)

        Attachments

        1. HDFS-12670.01.patch
          3 kB
          Arpit Agarwal
        2. HDFS-12670.02.patch
          1 kB
          Arpit Agarwal

          Issue Links

            Activity

              People

              • Assignee:
                arpitagarwal Arpit Agarwal
                Reporter:
                tgraves Thomas Graves
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: