[
https://issues.apache.org/jira/browse/HDFS-2956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vinayakumar B updated HDFS-2956:
--------------------------------
Resolution: Fixed
Hadoop Flags: Reviewed
Fix Version/s: 2.8.0
Status: Resolved (was: Patch Available)
Committed to trunk and branch-2.
Thanks [~ajisakaa] for the final reviews.
Thanks [~atm], [~daryn], [~tlipcon] for earlier discussions and reviews.
> 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: 2.0.0-alpha, 3.0.0
> Reporter: Todd Lipcon
> Assignee: Vinayakumar B
> Labels: BB2015-05-TBR
> Fix For: 2.8.0
>
> Attachments: HDFS-2956-01.patch, HDFS-2956-02.patch,
> HDFS-2956-04.patch, HDFS-2956.03.patch, HDFS-2956.branch-2.03.patch,
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)