标签:oca str nbsp avr scala cap 服务器 log web服务
#example for source=netcat, channel=memory, sink=logger # Name the components on this agent a1.sources = r1 a1.channels = c1 a1.sinks = k1 # configure for sources a1.sources.r1.type = netcat a1.sources.r1.bind = localhost a1.sources.r1.port = 44444 # configure for channels a1.channels.c1.type = memory a1.channels.c1.capacity = 1000 a1.channels.c1.transactionCapacity = 100 # configure for sinks a1.sinks.k1.type = logger # configure a1.sinks.k1.channel = c1 a1.sources.r1.channels = c1
# Name the components on this agent a1.sources = r1 a1.channels = c1 a1.sinks = k1 # configure for sources a1.sources.r1.type = exec a1.sources.r1.command = tail -F /opt/datas/flume_data/exec_tail.log # configure for channels a1.channels.c1.type = memory a1.channels.c1.capacity = 1000 a1.channels.c1.transactionCapacity = 100 # configure for sinks a1.sinks.k1.type = logger a1.sinks.k1.channel = c1 a1.sources.r1.channels = c1
# Name the components on this agent a1.sources = exec-source a1.channels = memory-channel a1.sinks = avro-sink # configure for sources a1.sources.exec-source.type = exec a1.sources.exec-source.command = tail -F /opt/datas/log-collect-system/log_server.log # configure for channels a1.channels.memory-channel.type = memory a1.channels.memory-channel.capacity = 1000 a1.channels.memory-channel.transactionCapacity = 100 # configure for sinks a1.sinks.avro-sink.type = avro a1.sinks.avro-sink.hostname = localhost a1.sinks.avro-sink.port = 44444 # configure a1.sinks.avro-sink.channel = memory-channel a1.sources.exec-source.channels = memory-channel
# Name the components on this agent a1.sources = avro-source a1.channels = memory-channel a1.sinks = logger-sink # configure for sources a1.sources.avro-source.type = avro a1.sources.avro-source.bind = localhost a1.sources.avro-source.port = 44444 # configure for channels a1.channels.memory-channel.type = memory a1.channels.memory-channel.capacity = 1000 a1.channels.memory-channel.transactionCapacity = 100 # configure for sinks a1.sinks.logger-sink.type = logger # configure a1.sinks.logger-sink.channel = memory-channel a1.sources.avro-source.channels = memory-channel
Flume+Kafka+SparkStreaming+Hbase+可视化(一)
标签:oca str nbsp avr scala cap 服务器 log web服务
原文地址:https://www.cnblogs.com/mlxx9527/p/9367495.html