Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BA2D6200BC8 for ; Wed, 9 Nov 2016 03:04:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B7228160B0A; Wed, 9 Nov 2016 02:04:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0BE85160B0C for ; Wed, 9 Nov 2016 03:04:04 +0100 (CET) Received: (qmail 60078 invoked by uid 500); 9 Nov 2016 02:03:59 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 59826 invoked by uid 99); 9 Nov 2016 02:03:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2016 02:03:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A2C552C2AB6 for ; Wed, 9 Nov 2016 02:03:58 +0000 (UTC) Date: Wed, 9 Nov 2016 02:03:58 +0000 (UTC) From: "Manoj Govindassamy (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (HDFS-5692) viewfs shows resolved path in FileNotFoundException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 09 Nov 2016 02:04:05 -0000 [ https://issues.apache.org/jira/browse/HDFS-5692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Manoj Govindassamy reassigned HDFS-5692: ---------------------------------------- Assignee: Manoj Govindassamy > viewfs shows resolved path in FileNotFoundException > --------------------------------------------------- > > Key: HDFS-5692 > URL: https://issues.apache.org/jira/browse/HDFS-5692 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs-client > Affects Versions: 2.2.0 > Reporter: Keith Turner > Assignee: Manoj Govindassamy > > With the following config, if I call fs.listStatus("/nn1/a/b") when {{/nn1/a/b}} does not exist then ... > {noformat} > > > fs.default.name > viewfs:/// > > > fs.viewfs.mounttable.default.link./nn1 > hdfs://host1:9000 > > > fs.viewfs.mounttable.default.link./nn2 > hdfs://host2:9000 > > > {noformat} > I will see an error message like the following. > {noformat} > java.io.FileNotFoundException: File /a/b does not exist. > at org.apache.hadoop.hdfs.DistributedFileSystem.listStatusInternal(DistributedFileSystem.java:644) > at org.apache.hadoop.hdfs.DistributedFileSystem.access$600(DistributedFileSystem.java:92) > at org.apache.hadoop.hdfs.DistributedFileSystem$14.doCall(DistributedFileSystem.java:702) > at org.apache.hadoop.hdfs.DistributedFileSystem$14.doCall(DistributedFileSystem.java:698) > at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81) > at org.apache.hadoop.hdfs.DistributedFileSystem.listStatus(DistributedFileSystem.java:698) > at org.apache.hadoop.fs.FilterFileSystem.listStatus(FilterFileSystem.java:222) > at org.apache.hadoop.fs.viewfs.ChRootedFileSystem.listStatus(ChRootedFileSystem.java:228) > at org.apache.hadoop.fs.viewfs.ViewFileSystem.listStatus(ViewFileSystem.java:366) > {noformat} > I think it would be useful for ViewFS to wrap the FileNotFoundException from the inner filesystem, giving an error message like the following. The following error message has the resolved and unresolved paths which is very useful for debugging. > {noformat} > java.io.FileNotFoundException: File /nn1/a/b does not exist. > at org.apache.hadoop.fs.viewfs.ViewFileSystem.listStatus(ViewFileSystem.java:366) > Caused by: java.io.FileNotFoundException: File /a/b does not exist. > at org.apache.hadoop.hdfs.DistributedFileSystem.listStatusInternal(DistributedFileSystem.java:644) > at org.apache.hadoop.hdfs.DistributedFileSystem.access$600(DistributedFileSystem.java:92) > at org.apache.hadoop.hdfs.DistributedFileSystem$14.doCall(DistributedFileSystem.java:702) > at org.apache.hadoop.hdfs.DistributedFileSystem$14.doCall(DistributedFileSystem.java:698) > at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81) > at org.apache.hadoop.hdfs.DistributedFileSystem.listStatus(DistributedFileSystem.java:698) > at org.apache.hadoop.fs.FilterFileSystem.listStatus(FilterFileSystem.java:222) > at org.apache.hadoop.fs.viewfs.ChRootedFileSystem.listStatus(ChRootedFileSystem.java:228) > at org.apache.hadoop.fs.viewfs.ViewFileSystem.listStatus(ViewFileSystem.java:366) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org