Giter Site home page Giter Site logo

flume-kafka's Introduction

Flume-ng Kafka

This project is used for flume-ng to communicate with kafka 0.7,2.

Configuration of Kafka Sink

agent_log.sinks.kafka_all.type = com.vipshop.flume.sink.kafka.KafkaSink
agent_log.sinks.kafka_all.channel = all_channel
agent_log.sinks.kafka_all.zkconnect = 127.0.0.1:2181
agent_log.sinks.kafka_all.topic = all
agent_log.sinks.kafka_all.batchsize = 200

Configuration of Kafka Source

agent_log.sources.kafka.type = com.vipshop.flume.source.kafka.KafkaSource
agent_log.sources.kafka.channels = internal_channel
agent_log.sources.kafka.zkconnect = 127.0.0.1:2181
agent_log.sources.kafka.batchsize = 200
agent_log.sources.kafka.topic = all
agent_log.sources.kafka.group = hdfs

Performance Workbench

I have run performance test. One is tail file to kafka and the other is fetch message from kafka. In test I used memory channel in flume, both kafka sink and kafka source can reach 150,000 message per second (when I added pressure to 200,000 message per second, memory channel would have pending message). While the performance hit this awesome performace, I think this plugin for flumg-ng can hold most condition.

Speical Thanks

In fact I'm a newbie in Java. I have learnt a lot from flumg-ng-rabbitmq. Thanks to Jeremy Custenborder.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.