You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flume.apache.org by mahendran m <ma...@hotmail.com> on 2015/01/08 05:40:38 UTC
Event with character literal
Hi ,
Is there any support in flume to handle the character literal when send event from file using spooling directory ?
Example
i am move the file using spooling directory which contain the following text
Hi,\r\nHow are you ?
i need it to be stored in HDFS as
Hi,How are you ?
it is working fine when i send message to flume source directly like JMS source or Http source. But not working in spooling directory.
Thanks.
Re: Event with character literal
Posted by Joey Echeverria <jo...@cloudera.com>.
You need an interceptor that will interpret the escaped characters in
the file. You could probably use the MorphlineIntercepter[1] to do
this.
-Joey
[1] http://flume.apache.org/FlumeUserGuide.html#morphline-interceptor
On Wed, Jan 7, 2015 at 8:40 PM, mahendran m <ma...@hotmail.com> wrote:
> Hi ,
>
> Is there any support in flume to handle the character literal when send
> event from file using spooling directory ?
>
> Example
>
> i am move the file using spooling directory which contain the following text
>
> Hi,\r\nHow are you ?
>
> i need it to be stored in HDFS as
>
> Hi,
> How are you ?
>
> it is working fine when i send message to flume source directly like JMS
> source or Http source. But not working in spooling directory.
>
> Thanks.
--
Joey Echeverria