Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-2328

hftp throws NPE if security is not enabled on remote cluster

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 0.20.205.0
    • Fix Version/s: 0.20.205.0
    • Component/s: None
    • Labels:
      None

      Description

      If hftp cannot locate either a hdfs or hftp token in the ugi, it will call getDelegationToken to acquire one from the remote nn. This method may return a null Token if security is disabled on the remote nn. Hftp will internally call its setDelegationToken which will throw a NPE when the token is null.

      Actually, if any problem happens while acquiring the token it assumes security is disabled! However, it's a pre-existing issue beyond the scope of the token renewal changes.

      1. h-2328.patch
        1.0 kB
        Owen O'Malley

        Issue Links

          Activity

          Hide
          Owen O'Malley added a comment -

          This patch adds the necessary null check.

          To clarify, this bug only happens when the client is configured with security and the source cluster is not.

          Show
          Owen O'Malley added a comment - This patch adds the necessary null check. To clarify, this bug only happens when the client is configured with security and the source cluster is not.
          Hide
          Daryn Sharp added a comment -

          +1 looks good!

          Show
          Daryn Sharp added a comment - +1 looks good!
          Hide
          Owen O'Malley added a comment -

          I committed this to 20-s and 205. I'll commit it to trunk as part of MAPREDUCE-2764.

          Show
          Owen O'Malley added a comment - I committed this to 20-s and 205. I'll commit it to trunk as part of MAPREDUCE-2764 .
          Hide
          Matt Foley added a comment -

          Closed upon release of 0.20.205.0

          Show
          Matt Foley added a comment - Closed upon release of 0.20.205.0

            People

            • Assignee:
              Owen O'Malley
              Reporter:
              Daryn Sharp
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development