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 78535109C9 for ; Mon, 16 Feb 2015 11:52:12 +0000 (UTC) Received: (qmail 7800 invoked by uid 500); 16 Feb 2015 11:52:12 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 7677 invoked by uid 500); 16 Feb 2015 11:52:12 -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 7372 invoked by uid 99); 16 Feb 2015 11:52:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2015 11:52:12 +0000 Date: Mon, 16 Feb 2015 11:52:12 +0000 (UTC) From: "Steve Loughran (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-11584) s3a file block size set to 0 in getFileStatus 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/HADOOP-11584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14322682#comment-14322682 ] Steve Loughran commented on HADOOP-11584: ----------------------------------------- jenkins doesn't test this; will run manual test against S3 instance > s3a file block size set to 0 in getFileStatus > --------------------------------------------- > > Key: HADOOP-11584 > URL: https://issues.apache.org/jira/browse/HADOOP-11584 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs/s3 > Affects Versions: 2.6.0 > Reporter: Dan Hecht > Assignee: Brahma Reddy Battula > Priority: Blocker > Attachments: HADOOP-111584.patch, HADOOP-11584-002.patch > > > The consequence is that mapreduce probably is not splitting s3a files in the expected way. This is similar to HADOOP-5861 (which was for s3n, though s3n was passing 5G rather than 0 for block size). > FileInputFormat.getSplits() relies on the FileStatus block size being set: > {code} > if (isSplitable(job, path)) { > long blockSize = file.getBlockSize(); > long splitSize = computeSplitSize(blockSize, minSize, maxSize); > {code} > However, S3AFileSystem does not set the FileStatus block size field. From S3AFileStatus.java: > {code} > // Files > public S3AFileStatus(long length, long modification_time, Path path) { > super(length, false, 1, 0, modification_time, path); > isEmptyDirectory = false; > } > {code} > I think it should use S3AFileSystem.getDefaultBlockSize() for each file's block size (where it's currently passing 0). -- This message was sent by Atlassian JIRA (v6.3.4#6332)