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 186BE80C1 for ; Tue, 16 Aug 2011 15:19:51 +0000 (UTC) Received: (qmail 82816 invoked by uid 500); 16 Aug 2011 15:19:50 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 82626 invoked by uid 500); 16 Aug 2011 15:19:49 -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 82618 invoked by uid 99); 16 Aug 2011 15:19:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 15:19:49 +0000 X-ASF-Spam-Status: No, hits=-2001.1 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; Tue, 16 Aug 2011 15:19:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2B799BF655 for ; Tue, 16 Aug 2011 15:19:28 +0000 (UTC) Date: Tue, 16 Aug 2011 15:19:28 +0000 (UTC) From: "Daryn Sharp (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <1414757876.41606.1313507968175.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HADOOP-6732) Improve FsShell's heap consumption by switching to listStatus that returns an iterator 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-6732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daryn Sharp updated HADOOP-6732: -------------------------------- Fix Version/s: 0.23.0 > Improve FsShell's heap consumption by switching to listStatus that returns an iterator > -------------------------------------------------------------------------------------- > > Key: HADOOP-6732 > URL: https://issues.apache.org/jira/browse/HADOOP-6732 > Project: Hadoop Common > Issue Type: Improvement > Reporter: Hairong Kuang > Assignee: Daryn Sharp > Fix For: 0.23.0 > > > When listing a large directory from the command line using the default heap configuration, FsShell often runs out of memory. This is because all stats of the entries under the directory need to be in memory before printing them. The new API listStatus that returns an iterator of FileStatus, which implemented in HDFS-1091, no longer requires that all entries are fetched first. Thus switching to this new API will greatly improve the use of heap space. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira