You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by Dave Cardwell <da...@davecardwell.co.uk> on 2012/11/17 15:09:14 UTC
SequenceFile.Reader Example
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
sample code using the new SequenceFile.Reader(Configuration, Option…)
syntax please?
--
Best wishes,
Dave Cardwell.
http://davecardwell.co.uk/
Re: SequenceFile.Reader Example
Posted by Dave Cardwell <da...@davecardwell.co.uk>.
Perfect—that did the trick, thank you.
--
Best wishes,
Dave Cardwell.
http://davecardwell.co.uk/
On 17 November 2012 15:17, Harsh J <ha...@cloudera.com> wrote:
> Hey Dave,
>
> You could check the TestSequenceFile sources:
>
> http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestSequenceFile.java?view=markup
>
> 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 <da...@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 sample
> > code using the new SequenceFile.Reader(Configuration, Option…) syntax
> > please?
> >
> > --
> > Best wishes,
> > Dave Cardwell.
> >
> > http://davecardwell.co.uk/
> >
>
>
>
> --
> Harsh J
>
Re: SequenceFile.Reader Example
Posted by Dave Cardwell <da...@davecardwell.co.uk>.
Perfect—that did the trick, thank you.
--
Best wishes,
Dave Cardwell.
http://davecardwell.co.uk/
On 17 November 2012 15:17, Harsh J <ha...@cloudera.com> wrote:
> Hey Dave,
>
> You could check the TestSequenceFile sources:
>
> http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestSequenceFile.java?view=markup
>
> 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 <da...@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 sample
> > code using the new SequenceFile.Reader(Configuration, Option…) syntax
> > please?
> >
> > --
> > Best wishes,
> > Dave Cardwell.
> >
> > http://davecardwell.co.uk/
> >
>
>
>
> --
> Harsh J
>
Re: SequenceFile.Reader Example
Posted by Dave Cardwell <da...@davecardwell.co.uk>.
Perfect—that did the trick, thank you.
--
Best wishes,
Dave Cardwell.
http://davecardwell.co.uk/
On 17 November 2012 15:17, Harsh J <ha...@cloudera.com> wrote:
> Hey Dave,
>
> You could check the TestSequenceFile sources:
>
> http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestSequenceFile.java?view=markup
>
> 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 <da...@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 sample
> > code using the new SequenceFile.Reader(Configuration, Option…) syntax
> > please?
> >
> > --
> > Best wishes,
> > Dave Cardwell.
> >
> > http://davecardwell.co.uk/
> >
>
>
>
> --
> Harsh J
>
Re: SequenceFile.Reader Example
Posted by Dave Cardwell <da...@davecardwell.co.uk>.
Perfect—that did the trick, thank you.
--
Best wishes,
Dave Cardwell.
http://davecardwell.co.uk/
On 17 November 2012 15:17, Harsh J <ha...@cloudera.com> wrote:
> Hey Dave,
>
> You could check the TestSequenceFile sources:
>
> http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestSequenceFile.java?view=markup
>
> 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 <da...@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 sample
> > code using the new SequenceFile.Reader(Configuration, Option…) syntax
> > please?
> >
> > --
> > Best wishes,
> > Dave Cardwell.
> >
> > http://davecardwell.co.uk/
> >
>
>
>
> --
> Harsh J
>
Re: SequenceFile.Reader Example
Posted by Harsh J <ha...@cloudera.com>.
Hey Dave,
You could check the TestSequenceFile sources:
http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestSequenceFile.java?view=markup
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 <da...@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 sample
> code using the new SequenceFile.Reader(Configuration, Option…) syntax
> please?
>
> --
> Best wishes,
> Dave Cardwell.
>
> http://davecardwell.co.uk/
>
--
Harsh J
Re: SequenceFile.Reader Example
Posted by Harsh J <ha...@cloudera.com>.
Hey Dave,
You could check the TestSequenceFile sources:
http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestSequenceFile.java?view=markup
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 <da...@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 sample
> code using the new SequenceFile.Reader(Configuration, Option…) syntax
> please?
>
> --
> Best wishes,
> Dave Cardwell.
>
> http://davecardwell.co.uk/
>
--
Harsh J
Re: SequenceFile.Reader Example
Posted by Harsh J <ha...@cloudera.com>.
Hey Dave,
You could check the TestSequenceFile sources:
http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestSequenceFile.java?view=markup
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 <da...@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 sample
> code using the new SequenceFile.Reader(Configuration, Option…) syntax
> please?
>
> --
> Best wishes,
> Dave Cardwell.
>
> http://davecardwell.co.uk/
>
--
Harsh J
Re: SequenceFile.Reader Example
Posted by Harsh J <ha...@cloudera.com>.
Hey Dave,
You could check the TestSequenceFile sources:
http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestSequenceFile.java?view=markup
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 <da...@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 sample
> code using the new SequenceFile.Reader(Configuration, Option…) syntax
> please?
>
> --
> Best wishes,
> Dave Cardwell.
>
> http://davecardwell.co.uk/
>
--
Harsh J