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

hftp throws NPE if security is not enabled on remote cluster

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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
          mattf Matt Foley added a comment -

          Closed upon release of 0.20.205.0

          Show
          mattf Matt Foley added a comment - Closed upon release of 0.20.205.0
          Hide
          owen.omalley 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.omalley 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
          daryn Daryn Sharp added a comment -

          +1 looks good!

          Show
          daryn Daryn Sharp added a comment - +1 looks good!
          Hide
          owen.omalley 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.omalley 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.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development