Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 AEA2D93F5 for ; Wed, 21 Sep 2011 19:11:36 +0000 (UTC) Received: (qmail 65889 invoked by uid 500); 21 Sep 2011 19:11:35 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 65853 invoked by uid 500); 21 Sep 2011 19:11:35 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 65816 invoked by uid 99); 21 Sep 2011 19:11:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2011 19:11:35 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2011 19:11:33 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 232F0A64A7 for ; Wed, 21 Sep 2011 19:11:12 +0000 (UTC) Date: Wed, 21 Sep 2011 19:11:12 +0000 (UTC) From: "Jitendra Nath Pandey (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <1071415791.52046.1316632272140.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1422925497.47437.1316547969022.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HADOOP-7661) FileSystem.getCanonicalServiceName throws NPE for any file system uri that doesn't have an authority. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-7661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13109789#comment-13109789 ] Jitendra Nath Pandey commented on HADOOP-7661: ---------------------------------------------- It seems to me that this issue (and also HADOOP-7602) got introduced in MAPREDUCE-2780. I would prefer that the trunk patch for that jira, doesn't introduce this issue or the issue in HADOOP-7602. We should port the tests though. > FileSystem.getCanonicalServiceName throws NPE for any file system uri that doesn't have an authority. > ----------------------------------------------------------------------------------------------------- > > Key: HADOOP-7661 > URL: https://issues.apache.org/jira/browse/HADOOP-7661 > Project: Hadoop Common > Issue Type: Bug > Affects Versions: 0.20.205.0 > Reporter: Jitendra Nath Pandey > Assignee: Jitendra Nath Pandey > Fix For: 0.20.205.0 > > Attachments: HADOOP-7661.20s.1.patch, HADOOP-7661.20s.2.patch > > > FileSystem.getCanonicalServiceName throws NPE for any file system uri that doesn't have an authority. > .... > java.lang.NullPointerException > at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:138) > at org.apache.hadoop.security.SecurityUtil.buildDTServiceName(SecurityUtil.java:261) > at org.apache.hadoop.fs.FileSystem.getCanonicalServiceName(FileSystem.java:174) > .... -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira