You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Daryn Sharp (JIRA)" <ji...@apache.org> on 2013/08/28 16:42:52 UTC
[jira] [Commented] (HDFS-2956) calling fetchdt without a --renewer
argument throws NPE
[ https://issues.apache.org/jira/browse/HDFS-2956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13752445#comment-13752445 ]
Daryn Sharp commented on HDFS-2956:
-----------------------------------
I'm not a protobuf expert, but I think downgrading a required field to optional is ok for compatibility but someone else should definitively comment.
Only nit is the condition {{renewer.toString() != null)}} is unnecessary because it will never return null.
> calling fetchdt without a --renewer argument throws NPE
> -------------------------------------------------------
>
> Key: HDFS-2956
> URL: https://issues.apache.org/jira/browse/HDFS-2956
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: security
> Affects Versions: 0.24.0, 3.0.0
> Reporter: Todd Lipcon
> Assignee: Vinay
> Attachments: HDFS-2956.patch
>
>
> If I call "bin/hdfs fetchdt /tmp/mytoken" without a "--renewer foo" argument, then it will throw a NullPointerException:
> Exception in thread "main" java.lang.NullPointerException
> at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getDelegationToken(ClientNamenodeProtocolTranslatorPB.java:830)
> this is because getDelegationToken is being called with a null renewer
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira