You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Owen O'Malley (JIRA)" <ji...@apache.org> on 2011/09/14 18:04:09 UTC
[jira] [Resolved] (HDFS-2328) hftp throws NPE if security is not
enabled on remote cluster
[ https://issues.apache.org/jira/browse/HDFS-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Owen O'Malley resolved HDFS-2328.
---------------------------------
Resolution: Fixed
I committed this to 20-s and 205. I'll commit it to trunk as part of MAPREDUCE-2764.
> 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