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 <[email protected]> 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" <[email protected]>
> wrote:
>
> Hi,
>
> Please let me know, how can we customize avro source header.
>
> To get the customized output to the hdfs.
>
> Thanks
> Raj
>
>

Reply via email to