On 08/07/2010 02:06 AM, Harsh J wrote:
On Sat, Aug 7, 2010 at 11:20 AM, David Rosenstrauch<dar...@darose.net> wrote:
I'm using a SequenceFileOutputFormat. But I'd like to be able to set some
SequenceFile.Metadata on the SequenceFile.Writer that's getting created.
Doesn't look like there's any easy way to do that, other than overriding
the SequenceFileOutputFormat.getRecordWriter() method.
Am I overlooking anything?
Doesn't seem like you are on a wrong path, so don't worry and go ahead!
P.s.: A reply by Tom White to a similar question:
http://www.mail-archive.com/common-u...@hadoop.apache.org/msg02218.html
TIA,
DR
On a similar note, it looks like if I want to customize the name/path of
the generated SequenceFile my only option currently is to override
FileOutputFormat.getDefaultWorkFile().
a) Again, have I got this correct, or am I overlooking something?
b) Would anyone else agree that this is something that can/should be
made easier? (And thus worthy of a bug report?)
Thanks,
DR