Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5C59C1008C for ; Fri, 30 May 2014 12:44:46 +0000 (UTC) Received: (qmail 23420 invoked by uid 500); 30 May 2014 12:44:42 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 23297 invoked by uid 500); 30 May 2014 12:44:42 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 23290 invoked by uid 99); 30 May 2014 12:44:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 May 2014 12:44:42 +0000 X-ASF-Spam-Status: No, hits=2.4 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bharathvissapragada1990@gmail.com designates 209.85.192.54 as permitted sender) Received: from [209.85.192.54] (HELO mail-qg0-f54.google.com) (209.85.192.54) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 May 2014 12:44:38 +0000 Received: by mail-qg0-f54.google.com with SMTP id q108so5124310qgd.27 for ; Fri, 30 May 2014 05:44:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=A/t+HzEx7KrJqMNA1u2SfOgRcEkeihY1oKxTZR8NKjc=; b=mXb984w6eCFYHzUXlacbDCohlMCUKmYolPFTGLXUIGChDPSO5h1ydkpmvlOIQEje6+ F+rataDG4dIJqJc/fPBazQEiYo9dIe1FvhQ941oJCE7cd3NZcCh4pz1xlHTUUg5uJM+Y GBND1gad917m3/YiGCTurfJMv0SB2dtH+K6Ou4z4QmtS+4mJwIdNVkse5l/jIqNi58Ao heNLKWirDMV+Pk2LchS31Bz0TZtSGgWpZx17zArcqqHEjc7jYehNSFBhN7gqkOzMzkAr CECO95Nq2SnK+ivhRWL/ePfZmN7nJ6srkODzeEsqO4gTqoaRWGij6xcPy6MEsbnGMVS5 mL4g== X-Received: by 10.140.23.7 with SMTP id 7mr19973799qgo.0.1401453857600; Fri, 30 May 2014 05:44:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.18.164 with HTTP; Fri, 30 May 2014 05:43:57 -0700 (PDT) In-Reply-To: <5B121937-A4AF-4982-98A3-F2FAA92EDFF1@fsfe.org> References: <5B121937-A4AF-4982-98A3-F2FAA92EDFF1@fsfe.org> From: bharath vissapragada Date: Fri, 30 May 2014 18:13:57 +0530 Message-ID: Subject: Re: listing a 530k files directory To: User Content-Type: multipart/alternative; boundary=001a11c13db259fbda04fa9d673a X-Virus-Checked: Checked by ClamAV on apache.org --001a11c13db259fbda04fa9d673a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Guido, You can set client side heap in HADOOP_OPTS variable before running the ls command. export HADOOP_OPTS=3D"-Xmx3g"; hadoop fs -ls / - Bharath On Fri, May 30, 2014 at 5:22 PM, Guido Serra wrote: > Hi, > do you have an idea on how to look at the content of a 530k-files HDFS > folder? > (yes, I know it is a bad idea to have such setup, but that=E2=80=99s the = status > and I=E2=80=99d like to debug it) > and the only tool that doesn=E2=80=99t go out of memory is "hdfs dfs -cou= nt > folder/=E2=80=9C > > -ls goes out of memory, -count with the folder/* goes out of memory =E2= =80=A6 > I=E2=80=99d like at least at the first 10 file names, see the size, maybe= open one > > thanks, > G. --001a11c13db259fbda04fa9d673a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Guido,

You can set client side heap = in HADOOP_OPTS variable before running the ls command.

=
export=C2=A0HADOOP_OPTS=3D"-Xmx3g"; hadoop fs -ls /

- Bharath


On Fri, May 30, 2014 at 5:22 PM, Guido Serra <zeph@fsfe.org> wr= ote:
Hi,
do you have an idea on how to look at the content of a 530k-files HDFS fold= er?
(yes, I know it is a bad idea to have such setup, but that=E2=80=99s the st= atus and I=E2=80=99d like to debug it)
and the only tool that doesn=E2=80=99t go out of memory is "hdfs dfs -= count folder/=E2=80=9C

-ls goes out of memory, -count with the folder/* goes out of memory =E2=80= =A6
I=E2=80=99d like at least at the first 10 file names, see the size, maybe o= pen one

thanks,
G.

--001a11c13db259fbda04fa9d673a--