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/08 14:47:47 UTC

can't customize avro source header

Hi Ivan,

As you mentioned

EventBuilder.*withBody*(line.getBytes(),map);


doesnt wokiing out.

I required the below format.

%d{*dd* MMM *yyyy* HH:mm:ss,SSS} [%t] %-5p (%C.%M:%L) %x - %m%n
Thanks in advance


Raj
On Mon, Aug 6, 2012 at 3:48 PM, Ivan <li...@188.com> wrote:

> 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
>
>