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

calling fetchdt without a --renewer argument throws NPE

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha, 3.0.0-alpha1
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: security
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      If I call "bin/hdfs fetchdt /tmp/mytoken" without a "--renewer foo" argument, then it will throw a NullPointerException:

      Exception in thread "main" java.lang.NullPointerException
      at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getDelegationToken(ClientNamenodeProtocolTranslatorPB.java:830)

      this is because getDelegationToken is being called with a null renewer

        Attachments

        1. HDFS-2956.03.patch
          4 kB
          Vinayakumar B
        2. HDFS-2956.branch-2.03.patch
          4 kB
          Vinayakumar B
        3. HDFS-2956.patch
          4 kB
          Vinayakumar B
        4. HDFS-2956-01.patch
          0.9 kB
          Vinayakumar B
        5. HDFS-2956-02.patch
          4 kB
          Vinayakumar B
        6. HDFS-2956-04.patch
          4 kB
          Vinayakumar B

          Activity

            People

            • Assignee:
              vinayrpet Vinayakumar B
              Reporter:
              tlipcon Todd Lipcon
            • Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: