"Acquisition Layer" Kafka and Flume how to choose

Source: Internet
Author: User

Acquisition Layer Flume can be used mainly , Kafka two kinds of technology.

Flume:Flume is a pipeline flow method that provides a number of default implementations that allow users to deploy through parameters and extend the API.

Kafka:Kafka is a durable, distributed message queue.

    • The Kafka is a very versatile system. You can have many producers and many consumers sharing multiple theme Topics. By contrast , Flume is a dedicated tool designed to send data to Hdfs,hbase. It has special optimizations for HDFS and integrates the security features of Hadoop. Therefore,Cloudera recommends using Kafka if the data is consumed by multiple systems , and Flumeif the data is designed for use with Hadoop.

    • as you all know , The Flume contains many source and sink components. However,Kafka obviously has a smaller production consumer ecosystem, and Kafka Community support is not good. Hopefully this will be improved in the future, but for now: using Kafka means you're ready to write your own producer and consumer code. If the existing Flume Sources and Sinks meet your needs, and you prefer a system that does not require any development, use Flume.

    • Flume can use interceptors to process data in real time. These are useful for masking or overloading data. Kafka requires an external flow-processing system to do so.

    • Kafka and Flume are reliable systems that guarantee 0 data loss through proper configuration. However,Flume does not support replica events. Then, if a node of the Flume agent crashes, you will lose these events even if you use a reliable file-pipeline method until you recover the disks. If you need a high-reliability line of piping, then using Kafka is a better choice.

    • Flume and Kafka can be used well together. If your design needs to be from the kafka to hadoop stream data, using the Flume Agent and configure Kafka Source and hdfs and Hbase All the benefits of combining. You can use the Cloudera manager consumer monitoring, and you can even add interceptors to do some streaming.

Flume and the Kafka can be used together. Typically , Flume + Kafka is used. In fact, if in order to take advantage of Flume existing write HDFS function, you can also use Kafka + Flume way.

"Acquisition Layer" Kafka and Flume how to choose

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.