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 85841177C8 for ; Wed, 1 Apr 2015 21:16:53 +0000 (UTC) Received: (qmail 4322 invoked by uid 500); 1 Apr 2015 21:16:53 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 4269 invoked by uid 500); 1 Apr 2015 21:16:53 -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 4257 invoked by uid 99); 1 Apr 2015 21:16:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2015 21:16:53 +0000 Date: Wed, 1 Apr 2015 21:16:53 +0000 (UTC) From: "Zoran Dimitrijevic (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-11785) Reduce number of listStatus operation in distcp buildListing() 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-11785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Zoran Dimitrijevic updated HADOOP-11785: ---------------------------------------- Attachment: distcp-liststatus2.patch removed white space diffs. reused FileSystem sourceFS in traverse as suggested. > Reduce number of listStatus operation in distcp buildListing() > -------------------------------------------------------------- > > Key: HADOOP-11785 > URL: https://issues.apache.org/jira/browse/HADOOP-11785 > Project: Hadoop Common > Issue Type: Improvement > Components: tools/distcp > Affects Versions: 3.0.0 > Reporter: Zoran Dimitrijevic > Assignee: Zoran Dimitrijevic > Priority: Minor > Attachments: distcp-liststatus.patch, distcp-liststatus2.patch > > Original Estimate: 1h > Remaining Estimate: 1h > > Distcp was taking long time in copyListing.buildListing() for large source trees (I was using source of 1.5M files in a tree of about 50K directories). For input at s3 buildListing was taking more than one hour. I've noticed a performance bug in the current code which does listStatus twice for each directory which doubles number of RPCs in some cases (if most directories do not contain >1000 files). > -- This message was sent by Atlassian JIRA (v6.3.4#6332)