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

            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