Re: Writing Sequence Files

2015-05-09 Thread Stéphane Verlet
Have you look at the Hadoop SequenceFile API ? http://hadoop.apache.org/docs/r2.6.0/api/org/apache/hadoop/io/SequenceFile.html In particular SequenceFile.createWriter It worked for me. Here is also a sample from stack overflow http://stackoverflow.com/a/25484581 On Mon, May 4, 2015 at

Re: Writing Sequence Files

2015-05-04 Thread Owen O'Malley
On Mon, May 4, 2015 at 11:02 AM, Grant Overby (groverby) wrote: > I’m looking for some sample code to write a hive compatible sequence > file for an external table and matching ddl. > In general the easiest way is to create a table with what you'd like to have and use Hive to write to table li

Writing Sequence Files

2015-05-04 Thread Grant Overby (groverby)
I’m looking for some sample code to write a hive compatible sequence file for an external table and matching ddl. I’m starting with a java pojo. I can create an Object Inspector for this class. I’m reasonably sure I can write a serde leveraging java’s externalizable serialization. I’m coming up