You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flume.apache.org by rajesh mandava <ra...@gmail.com> on 2012/08/06 11:52:52 UTC
can we customize avro source header
Hi,
Please let me know, how can we customize avro source header.
To get the customized output to the hdfs.
Thanks
Raj
Re:can we customize avro source header
Posted by Ivan <li...@188.com>.
Hi Raj
Custom avro source header is easy.
First defined a map,set the key as header name and value as header value ,
then use EventBuilder.withBody(line.getBytes(),map);
Get custom header please use %{header name} in flume.conf.
--
Regards
Ivan
At 2012-08-06 17:52:52,"rajesh mandava" <ra...@gmail.com> wrote:
Hi,
Please let me know, how can we customize avro source header.
To get the customized output to the hdfs.
Thanks
Raj