Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2553A177DF for ; Fri, 10 Jul 2015 10:45:11 +0000 (UTC) Received: (qmail 42973 invoked by uid 500); 10 Jul 2015 10:45:10 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 42920 invoked by uid 500); 10 Jul 2015 10:45:10 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 42906 invoked by uid 99); 10 Jul 2015 10:45:10 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2015 10:45:10 +0000 Date: Fri, 10 Jul 2015 10:45:10 +0000 (UTC) From: "Hudson (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-2956) calling fetchdt without a --renewer argument throws NPE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-2956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14622123#comment-14622123 ] Hudson commented on HDFS-2956: ------------------------------ FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #252 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/252/]) HDFS-2956. calling fetchdt without a --renewer argument throws NPE (Contributed by Vinayakumar B)HDFS-2956. calling fetchdt without a --renewer argument throws NPE (Contributed by Vinayakumar B) (vinayakumarb: rev b48908033fcac7a4bd4313c1fd1457999fba08e1) * 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/protocolPB/ClientNamenodeProtocolTranslatorPB.java * hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt > 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 > 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)