Re: How to change a particular field value after decoding the original byte array?

2015-01-12 Thread Check Peck
Yes that's what I am looking for. Question is - How do I update the GenericRecord, I want to update user_id field with some new random long number.? Can you provide an example how can I update GenericRecord and then serialize it to a new Byte Array? On Mon, Jan 12, 2015 at 4:34 PM, Joey

Re: How to change a particular field value after decoding the original byte array?

2015-01-12 Thread Joey Echeverria
I'm not sure I understand the question. You can certainly deserialize the byte array back into a GenericRecord. You can then update that GenericRecord and serialize that to a new byte array. Is that what you're looking for? -Joey On Mon, Jan 12, 2015 at 3:42 PM, Check Peck

RE: AVRO MultipleOutput

2015-01-12 Thread Ankur Jain
Thanks Deepak, I tried using below but that also not helping in changing output file name… In Job file MultipleOutputs.addNamedOutput(job, clean, AvroKeyOutputFormat.class, Measurement.class , NullWritable.class); In Reducer Setup: MultipleOutputsMeasurement, NullWritable mos;

RE: AVRO MultipleOutput

2015-01-12 Thread Ankur Jain
Please ignore last one… Thanks Deepak, I tried using below but that also not helping in changing output file name… In Job file MultipleOutputs.addNamedOutput(job, clean, AvroKeyOutputFormat.class, Measurement.class , NullWritable.class); In Reducer Setup: MultipleOutputsMeasurement,