将133,上的文件内容发送到132机器上
- 将132机器上的flume拷贝到133上
- 在132机器上创建avro source
a1.sources = r1 a1.sinks = k1 a1.channels = c1 # Describe/configure the source a1.sources.r1.type = avro a1.sources.r1.bind =0.0.0.0 a1.sources.r1.port =41414 # Describe the sink a1.sinks.k1.type = logger # Use a channel which buffers events in memory a1.channels.c1.type = memory a1.channels.c1.capacity = 1000 a1.channels.c1.transactionCapacity = 100 # Bind the source and sink to the channel a1.sources.r1.channels = c1 a1.sinks.k1.channel = c1
3.在133机器上执行
bin/flume-ng avro-client --conf conf/ --host 192.168.13.132 --port 41414 --filename /opt/test.log
时间: 2024-11-05 18:37:40