Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 374F7DE58 for ; Tue, 13 Nov 2012 01:51:30 +0000 (UTC) Received: (qmail 31191 invoked by uid 500); 13 Nov 2012 01:51:25 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 30957 invoked by uid 500); 13 Nov 2012 01:51:25 -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 30950 invoked by uid 99); 13 Nov 2012 01:51:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Nov 2012 01:51:25 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yinghua.hu@gmail.com designates 209.85.223.176 as permitted sender) Received: from [209.85.223.176] (HELO mail-ie0-f176.google.com) (209.85.223.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Nov 2012 01:51:19 +0000 Received: by mail-ie0-f176.google.com with SMTP id k11so11400687iea.35 for ; Mon, 12 Nov 2012 17:50:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=O/rXn95mMul+QgyV0ydTJk0ZGjq+1xD9So7MCGWM0MQ=; b=AI1uf4z/81JXmqPE0K/L0C5TSEu7nUNsZ0mBC1RD2wBkdPqFXaPVwhjc6agpT/eePO /oiXBwPKIi8mUupikd+xKP1nCXt9ZQ4jyZAJaM7fWYFpp30Q83hGlBj85P+x4Tb6IzR8 a8GJQZq8G1wgUec1CjVWuD3KGP3QOHDFUhustfDWmbxdHV+uKQJXrSEiCUHK1g9cmd2h aESAjeV2fVDk7Nh09uhckFYZKQ2Y/ChUSthn0xDTsWeyLrivD7ZnU8NKaS4gzZxjE64z LW3Bzp+UNIjWIpMHaFLHQcy9sxZI1LfNbZngIiFaAG7ha6idoO/HfbtFngiObNujHorN mlvw== MIME-Version: 1.0 Received: by 10.50.34.201 with SMTP id b9mr9756147igj.55.1352771459135; Mon, 12 Nov 2012 17:50:59 -0800 (PST) Received: by 10.64.12.66 with HTTP; Mon, 12 Nov 2012 17:50:59 -0800 (PST) In-Reply-To: References: Date: Mon, 12 Nov 2012 17:50:59 -0800 Message-ID: Subject: Re: Reading files from a directory From: yinghua hu To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=14dae93409f948b7be04ce56a6e2 X-Virus-Checked: Checked by ClamAV on apache.org --14dae93409f948b7be04ce56a6e2 Content-Type: text/plain; charset=ISO-8859-1 Hi, Mohit You can input everything in a directory. See the step 12 in this link. http://raseshmori.wordpress.com/ On Mon, Nov 12, 2012 at 5:40 PM, Mohit Anchlia wrote: > Using Java dfs api is it possible to read all the files in a directory? Or > do I need to list all the files in the directory and then read it? -- Regards, Yinghua --14dae93409f948b7be04ce56a6e2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi, Mohit

You can input everything in a direc= tory. See the step 12 in this link.

http://raseshmori.wordpress.com/

On Mon, Nov 12, 2012 at 5:40 PM, Mohit Anchlia <mohitanchlia@gmail.co= m> wrote:
Using Java dfs api is it possible to read all the files in a directory? Or = do I need to list all the files in the directory and then read it?



--
Regards,
=
Yinghua
--14dae93409f948b7be04ce56a6e2--