From mapreduce-dev-return-2112-apmail-hadoop-mapreduce-dev-archive=hadoop.apache.org@hadoop.apache.org Sat Jun 19 00:31:49 2010 Return-Path: Delivered-To: apmail-hadoop-mapreduce-dev-archive@minotaur.apache.org Received: (qmail 55575 invoked from network); 19 Jun 2010 00:31:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Jun 2010 00:31:48 -0000 Received: (qmail 47486 invoked by uid 500); 19 Jun 2010 00:31:48 -0000 Delivered-To: apmail-hadoop-mapreduce-dev-archive@hadoop.apache.org Received: (qmail 47266 invoked by uid 500); 19 Jun 2010 00:31:47 -0000 Mailing-List: contact mapreduce-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-dev@hadoop.apache.org Delivered-To: mailing list mapreduce-dev@hadoop.apache.org Received: (qmail 47248 invoked by uid 99); 19 Jun 2010 00:31:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jun 2010 00:31:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jun 2010 00:31:45 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5J0VNQS003608 for ; Sat, 19 Jun 2010 00:31:23 GMT Message-ID: <22949644.89631276907483483.JavaMail.jira@thor> Date: Fri, 18 Jun 2010 20:31:23 -0400 (EDT) From: "Paul Yang (JIRA)" To: mapreduce-dev@hadoop.apache.org Subject: [jira] Created: (MAPREDUCE-1877) getConetentSummary() for HarFileSystem throws IllegalArgumentException 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 getConetentSummary() for HarFileSystem throws IllegalArgumentException ---------------------------------------------------------------------- Key: MAPREDUCE-1877 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1877 Project: Hadoop Map/Reduce Issue Type: Bug Components: harchive Affects Versions: 0.22.0 Reporter: Paul Yang As HarFileSystem does not implement getContentSummary(), the implementation from FilterFileSystem is inherited by default. However, FilterFileSystem.getContentSummary() does not work for the HarFileSystem because the method attempts to use HarFileSystem's underlying FS to call getContentSummary(). In the case where the the underlying filesystem is HDFS, an exception similar to the following is thrown: {code} java.lang.IllegalArgumentException: Wrong FS: har://hdfs-example.com:9000/tmp/data.har, expected: hdfs://example.com:9000 at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:352) at org.apache.hadoop.hdfs.DistributedFileSystem.checkPath(DistributedFileSystem.java:99) at org.apache.hadoop.hdfs.DistributedFileSystem.getPathName(DistributedFileSystem.java:155) at org.apache.hadoop.hdfs.DistributedFileSystem.getContentSummary(DistributedFileSystem.java:232) at org.apache.hadoop.fs.FilterFileSystem.getContentSummary(FilterFileSystem.java:287) at org.apache.hadoop.fs.FilterFileSystem.getContentSummary(FilterFileSystem.java:287) {code} One solution is to implement HarFileSystem.getContentSummary() using code similar to FileSystem.getContentSummary(). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.