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 4AF59D9E5 for ; Sat, 17 Nov 2012 15:54:22 +0000 (UTC) Received: (qmail 39146 invoked by uid 500); 17 Nov 2012 15:54:17 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 38959 invoked by uid 500); 17 Nov 2012 15:54:17 -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 38780 invoked by uid 99); 17 Nov 2012 15:54:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Nov 2012 15:54:16 +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 dave@davecardwell.co.uk 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; Sat, 17 Nov 2012 15:54:12 +0000 Received: by mail-ie0-f176.google.com with SMTP id k11so5673391iea.35 for ; Sat, 17 Nov 2012 07:53:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=davecardwell.co.uk; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=pD8XCnQy9FBijSGv62lQuBbYbPN1nT5XgkVHYt+Ug1k=; b=edocJqZdYE9cU8zivOhiez8Rqal8dn9IWwhwq5eEQttGBFnEnnbqELHRG/NGRcxGeS 5++EkJ56dMGjPGYHXlDzod37rPkhU9I9ivCniOlCVP16ZKYGDtDdGlDauFJFO8m/KgLs EkAcT0aoFPgr9pwyIlpGNRXEglmGbupkQrZis= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=pD8XCnQy9FBijSGv62lQuBbYbPN1nT5XgkVHYt+Ug1k=; b=dGC3SwbqmKfCA+4Fe5rC61BMpXUtohMzS6dTGKy8ph/P4TT+QHrz3sqP2qkiXkZqGa XYOdyjEFEa4OfdVsBcJ1uq8DzRiiRIxet1yMMIyvOHS3wYgTEWPs3m0oI8dFqUOmrr/O x76op+PjIpWKuUdML8ZltwxmLx79ZQSwfsRXJpaz6DbW5x1VQ/3o6djoxcJX7L+F612f 3yppQjjeG1jbiVCpm06ee4vS8d0NNfY3T1LBGqhIgJTS/cvEEhZubNHPwEQtnP+kgxv+ Ulk9HZnYJnwYVDJcxyNbAzrIFVPrhDSxbrwg9VizgQeU1TxuzksqByvnLgI5SekQC/RV tlgg== Received: by 10.50.207.104 with SMTP id lv8mr2088101igc.33.1353167631601; Sat, 17 Nov 2012 07:53:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.26.196 with HTTP; Sat, 17 Nov 2012 07:53:30 -0800 (PST) In-Reply-To: References: From: Dave Cardwell Date: Sat, 17 Nov 2012 15:53:30 +0000 Message-ID: Subject: Re: SequenceFile.Reader Example To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=14dae9340fbd00cf7704ceb2e4eb X-Gm-Message-State: ALoCoQlBuRGENI67VnMcIy+fP+jw2VCzpMW8k6q+pwlKeDd4mYel5YZkTY2GMqc/5aQ3/bp8Z2HD X-Virus-Checked: Checked by ClamAV on apache.org --14dae9340fbd00cf7704ceb2e4eb Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Perfect=97that did the trick, thank you. --=20 Best wishes, Dave Cardwell. http://davecardwell.co.uk/ On 17 November 2012 15:17, Harsh J wrote: > Hey Dave, > > You could check the TestSequenceFile sources: > > http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-common-project/ha= doop-common/src/test/java/org/apache/hadoop/io/TestSequenceFile.java?view= =3Dmarkup > > One simple builder-API based reader example lies at ~606 presently, > and a simple writer example at ~583. > > On Sat, Nov 17, 2012 at 7:39 PM, Dave Cardwell > wrote: > > I'm looking to read a sequence file in my mapper's configure() but all > the > > examples I can find use the deprecated SequenceFile.Reader(FileSystem, > Path, > > Configuration) syntax. Is anyone aware of (or able to provide) any samp= le > > code using the new SequenceFile.Reader(Configuration, Option=85) syntax > > please? > > > > -- > > Best wishes, > > Dave Cardwell. > > > > http://davecardwell.co.uk/ > > > > > > -- > Harsh J > --14dae9340fbd00cf7704ceb2e4eb Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Perfect=97that did the trick, thank you.

--=A0
Bes= t wishes,
Dave Cardwell.




On 17 November 2012 15:17, Harsh J <ha= rsh@cloudera.com> wrote:
Hey Dave,

You could check the TestSequenceFile sources:
http://svn.apache.org/viewvc/hadoop/com= mon/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hado= op/io/TestSequenceFile.java?view=3Dmarkup

One simple builder-API based reader example lies at ~606 presently,
and a simple writer example at ~583.

On Sat, Nov 17, 2012 at 7:39 PM, Dave Cardwell <dave@davecardwell.co.uk> wrote:
> I'm looking to read a sequence file in my mapper's configure()= but all the
> examples I can find use the deprecated SequenceFile.Reader(FileSystem,= Path,
> Configuration) syntax. Is anyone aware of (or able to provide) any sam= ple
> code using the new SequenceFile.Reader(Configuration, Option=85) synta= x
> please?
>
> --
> Best wishes,
> Dave Cardwell.
>
> http://daveca= rdwell.co.uk/
>



--
Harsh J

--14dae9340fbd00cf7704ceb2e4eb--