hadoop - Flume - Tiering data flows using the Avro Source and Sink -
i'm attempting set simple tiered data flow using avro source/sink between 2 agents on different machines.
the first agent on vm-host-01 node (called "agent") has netcat
source, memory
channel, , avro
sink.
the second agent on vm-host-02 node (called "collector" has avro
source, memory
channel, , hdfs
sink.
here config first agent "agent".
agent.sources=s1 agent.channels=c1 agent.sinks=k1 agent.sources.s1.type=netcat agent.sources.s1.channels=c1 agent.sources.s1.bind=vm-host-01 agent.sources.s1.port=12345 agent.channels.c1.type=memory agent.sinks.k1.type=avro agent.sinks.k1.channel=c1 agent.sinks.k1.hostname=vm-host-02 agent.sinks.k1.port=42424
here config second agent "collector" on second machine:
collector.sources=av1 collector.channels=c1 collector.sinks=k1 collector.sources.av1.type=avro collector.sources.av1.bind=vm-host-02 collector.sources.av1.port=42424 collector.sources.av1.channels=c1 collector.channels.c1.type=memory collecor.sinks.k1.type=hdfs collecor.sinks.k1.hdfs.path=/user/root/flume/mydata collecor.sinks.k1.hdfs.filetype=datastream collecor.sinks.k1.hdfs.writetype=text collecor.sinks.k1.hdfs.fileprefix=hello collecor.sinks.k1.hdfs.filesuffix=.txt collecor.sinks.k1.channel=c1
now when telnet first host (vm-host-01) , enter strings, command prompt first agent doesn't change. (neither command prompt second host).
if edit config "agent" , change sink hdfs
, can telnet in, enter string, see command prompt acknolwedge , wrote hdfs.
just adding avro sink seems disable netcat
source accepting input.
oops, mispelled "collector" "collecor".
Comments
Post a Comment