Flume涓巏afka闆嗘垚
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Flume涓巏afka闆嗘垚相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/jobs' title='jobs'>jobs
nsa producer hsi col log trap asi bootstra1锛夐厤缃甪lume(flume-kafka.conf)
# define a1.sources = r1 a1.sinks = k1 a1.channels = c1 # source a1.sources.r1.type = exec a1.sources.r1.command = tail -F -c +0 /opt/module/datas/flume.log a1.sources.r1.shell = /bin/bash -c # sink a1.sinks.k1.type = org.apache.flume.sink.kafka.KafkaSink a1.sinks.k1.kafka.bootstrap.servers = hadoop202:9092,hadoop203:9092,hadoop204:9092 a1.sinks.k1.kafka.topic = first a1.sinks.k1.kafka.flumeBatchSize = 20 a1.sinks.k1.kafka.producer.acks = 1 a1.sinks.k1.kafka.producer.linger.ms = 1 # channel a1.channels.c1.type = memory a1.channels.c1.capacity = 1000 a1.channels.c1.transactionCapacity = 100 # bind a1.sources.r1.channels = c1 a1.sinks.k1.channel = c1
2锛?鍚姩kafkaIDEA娑堣垂鑰?/p>
bin/kafka-console-consumer.sh --zookeeper hadoop202:2181 --from-beginning --topic first
3锛?杩涘叆flume鏍圭洰褰曚笅锛屽惎鍔╢lume
bin/flume-ng agent -c conf/ -n a1 -f jobs/flume-kafka.conf
以上是关于Flume涓巏afka闆嗘垚的主要内容,如果未能解决你的问题,请参考以下文章
Kiwi Syslog Web Access涓嶢ctive Directory闆嗘垚璁よ瘉
鎸佺画闆嗘垚楂樼骇绡囦箣Jenkins cli涓嶫enkins ssh
铻嶄簯鍗虫椂閫氳SDK闆嗘垚 -- FCM鎺ㄩ€侀泦鎴愭寚鍗?Android骞冲彴)
Spring Boot锛堝崄涓€锛塕edis闆嗘垚浠嶥ocker瀹夎鍒板垎甯冨紡Session鍏变韩