hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-8627) NPE thrown if unable to fetch token from Namenode
Date Tue, 30 Jun 2015 10:36:04 GMT

    [ https://issues.apache.org/jira/browse/HDFS-8627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14608095#comment-14608095
] 

Hudson commented on HDFS-8627:
------------------------------

FAILURE: Integrated in Hadoop-trunk-Commit #8093 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/8093/])
HDFS-8627. NPE thrown if unable to fetch token from Namenode (Contributed by J.Andreina) (vinayakumarb:
rev 7ba5bbac02b688f68a8d23671a1e869234b4cebe)
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/TestDelegationTokenFetcher.java
* hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DelegationTokenFetcher.java
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt


> NPE thrown if unable to fetch token from Namenode
> -------------------------------------------------
>
>                 Key: HDFS-8627
>                 URL: https://issues.apache.org/jira/browse/HDFS-8627
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: J.Andreina
>            Assignee: J.Andreina
>             Fix For: 3.0.0
>
>         Attachments: HDFS-8627.1.patch, HDFS-8627.2.patch
>
>
> DelegationTokenFetcher#saveDelegationToken
> Missed to check if token is null.
> {code}
>     Token<?> token = fs.getDelegationToken(renewer);
>     Credentials cred = new Credentials();
>     cred.addToken(token.getKind(), token);
> {code}
> {noformat}
> XXXXXXXXXXXXXXXXXX:~/hadoop/namenode/bin> ./hdfs fetchdt --renewer Rex /home/REX/file1
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.hadoop.hdfs.tools.DelegationTokenFetcher.saveDelegationToken(DelegationTokenFetcher.java:181)
>         at org.apache.hadoop.hdfs.tools.DelegationTokenFetcher$1.run(DelegationTokenFetcher.java:126)
>         at java.security.AccessController.doPrivileged(AccessController.java:314)
>         at javax.security.auth.Subject.doAs(Subject.java:572)
>         at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1666)
>         at org.apache.hadoop.hdfs.tools.DelegationTokenFetcher.main(DelegationTokenFetcher.java:114)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message