hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Owen O'Malley (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-2328) hftp throws NPE if security is not enabled on remote cluster
Date Tue, 13 Sep 2011 17:03:09 GMT

     [ https://issues.apache.org/jira/browse/HDFS-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Owen O'Malley updated HDFS-2328:
--------------------------------

    Attachment: h-2328.patch

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.

> 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
>
>         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

        

Mime
View raw message