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

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          1d 42m 1 Owen O'Malley 14/Sep/11 17:02
          Resolved Resolved Closed Closed
          34d 8h 23m 1 Matt Foley 19/Oct/11 01:25
          Matt Foley made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          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
          Owen O'Malley made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          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
          Daryn Sharp added a comment -

          +1 looks good!

          Show
          Daryn Sharp added a comment - +1 looks good!
          Owen O'Malley made changes -
          Assignee Owen O'Malley [ owen.omalley ]
          Owen O'Malley made changes -
          Attachment h-2328.patch [ 12494270 ]
          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.
          Daryn Sharp made changes -
          Field Original Value New Value
          Link This issue is broken by MAPREDUCE-2764 [ MAPREDUCE-2764 ]
          Daryn Sharp created issue -

            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