flume-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ran Mozes <ran.mo...@oracle.com>
Subject Flume event truncation to 16 bytes
Date Thu, 12 Jun 2014 09:47:05 GMT
Hi,

I couldn’t find a helpful answer on the internet and I hope someone on this alias might
be able to help:
I have a simple flume setup which uses netcat as a source and a custom sink do deliver the
events using http post to a target.
The problem is that the events are being truncated to 16 bytes before they arrive the sink.
I read that this is the default behaviour of netcat but wanted to know if there is a quick

tweak for it.

The events look like this: Event: { headers:{} body: 4A 75 6E 20 39 2C 20 32 30 31 34 20 34
3A 30 37 Jun 9, 2014 4:07 }   
The conf file looks like this: 
 
# Name the components on this agent
a1.sources = r1
a1.sinks = k1
a1.channels = c1

# Describe/configure the source
a1.sources.r1.type = netcat
a1.sources.r1.bind = localhost
a1.sources.r1.port = 44444
a1.sources.r1.max-line-length = 512

# Describe the sink
a1.sinks.k1.type = customhttppostsink.MySink

# Use a channel which buffers events in memory
#a1.channels.c1.type = file
a1.channels.c1.type = memory
a1.channels.c1.capacity = 100000
a1.channels.c1.transactionCapacity = 10000

# Bind the source and sink to the channel
a1.sources.r1.channels = c1
a1.sinks.k1.channel = c1 

Any ideas are welcome! 

TIA,
Ran 
Mime
View raw message