[ https://issues.apache.org/jira/browse/HDFS-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13103768#comment-13103768 ]
Daryn Sharp commented on HDFS-2328: ----------------------------------- +1 looks good! > 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 > Assignee: Owen O'Malley > Priority: Critical > Fix For: 0.20.205.0 > > Attachments: h-2328.patch > > > 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