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 64CC6C937 for ; Wed, 13 Jun 2012 07:23:37 +0000 (UTC) Received: (qmail 99238 invoked by uid 500); 13 Jun 2012 07:23:34 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 98759 invoked by uid 500); 13 Jun 2012 07:23:31 -0000 Mailing-List: contact hdfs-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-user@hadoop.apache.org Delivered-To: mailing list hdfs-user@hadoop.apache.org Received: (qmail 98731 invoked by uid 99); 13 Jun 2012 07:23:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2012 07:23:30 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dontariq@gmail.com designates 209.85.216.176 as permitted sender) Received: from [209.85.216.176] (HELO mail-qc0-f176.google.com) (209.85.216.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2012 07:23:22 +0000 Received: by qcsc21 with SMTP id c21so156888qcs.35 for ; Wed, 13 Jun 2012 00:23:02 -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:content-transfer-encoding; bh=adtAtLvTistvwuow7nR4Yn+7L78+wi6EkM51Fd4IT5M=; b=FC4qD60E6gFD3nNNDtqtoWFAKw32jYUb14A84R1gI8skrDUbP2qEsBv/0Y8pPLYwvW 1uDIX3J9Ie1gq26CifsK78Cd5D31Bt9LjkJIu3i9I+qPThBe+Gza6DDOf4Uy+djnm3dS W+wuMAm07EyO6XQIrK0k4EnXXXV8kQxAZG66ht8A+Hnb0yQEqTLa6kgbsi7N3fTEpPbw rVLFMk62Uu3dvaFR9p9X7yx9M+/xG0F1PZon98LGmySIrqQIqz/n3v9XiJjt5LVNIHOp dlLeUZdRn55kv9mKFLnkP4ADSimVu+LevT/xBaHCfmhf2niSsJ4jpkaC4JqNr3rAsSVW oMfQ== Received: by 10.224.76.205 with SMTP id d13mr7334059qak.32.1339572181975; Wed, 13 Jun 2012 00:23:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.126.75 with HTTP; Wed, 13 Jun 2012 00:22:20 -0700 (PDT) In-Reply-To: References: From: Mohammad Tariq Date: Wed, 13 Jun 2012 12:52:20 +0530 Message-ID: Subject: Re: How to find EOF To: hdfs-user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable thank you Denny. Regards, =A0=A0 =A0Mohammad Tariq On Wed, Jun 13, 2012 at 5:47 AM, Denny Ye wrote: > DFSInputStream.available(); > > > 2012/6/13 Mohammad Tariq >> >> Hello list, >> >> =A0 =A0Is it possible to find the end of a file stored in hdfs using the >> hdfs API??currently I am comparing FSDataInputStream.getPos() with >> FileSystem.getFileStatus().getLen() to serve the purpose..Thank you >> >> Regards, >> =A0=A0 =A0Mohammad Tariq > >