Flume + Kafka Basic Configuration

Source: Internet
Author: User

apache-flume1.6 Sink Default Support Kafka

  • [FLUME-2242]-FLUME Sink and Source for Apache Kafka

The official example is very intimate, you can directly run =,=, detailed configuration after a slow look.

A1.channels = Channel1
A1.sources = src-1
A1.sinks = K1

A1.sources.src-1.type = Spooldir
A1.sources.src-1.channels = Channel1
A1.sources.src-1.spooldir =/opt/flumespool/
A1.sources.src-1.fileheader = False

#a1. Sources.src-1.type = Exec
#a1. Sources.src-1.command = Tail-f/opt/flumespool/abc.log
#a1. sources.src-1.channels = Channel1

A1.sinks.k1.type = Org.apache.flume.sink.kafka.KafkaSink
A1.sinks.k1.topic = Testlog
A1.sinks.k1.brokerList = 1.1.1.11:9092,1.1.1.12:9092
A1.sinks.k1.requiredAcks = 1
A1.sinks.k1.batchSize = 20
A1.sinks.k1.channel = Channel1

A1.channels.channel1.type = Org.apache.flume.channel.kafka.KafkaChannel
A1.channels.channel1.capacity = 10000
a1.channels.channel1.transactionCapacity = 1000
a1.channels.channel1.brokerlist=1.1.1.11:9092,1.1.1.12:9092
A1.channels.channel1.topic=testlog
a1.channels.channel1.zookeeperconnect=1.1.1.13:2181

Flume + Kafka Basic Configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.