You'd either have to write a new source or use one of the RPC sources and send the JSON in a container. For example, you could use the Avro source to send just a string with the content of the JSON. You'll have to deserialize somewhere else in your flow.
Alternatively, you could pre-process the JSON to strip out new lines before sending them to the netcat source. -Joey On Fri, Dec 12, 2014 at 12:01 AM, jean garutti <[email protected]> wrote: > Hi, > I want flume to listen to JSON event send by netcat. > But the event is not correct because each new line result in a new flume > event. > > How can i send json event to flume by tcp/udp and have flume handle > correctly the json format ? > > thanks -- Joey Echeverria
