hftp throws NPE if security is not enabled on remote cluster
------------------------------------------------------------

                 Key: HDFS-2328
                 URL: https://issues.apache.org/jira/browse/HDFS-2328
             Project: Hadoop HDFS
          Issue Type: Bug
    Affects Versions: 0.20.205.0
            Reporter: Daryn Sharp
            Priority: Critical
             Fix For: 0.20.205.0


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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to