Skip to content

shangan/flume-kafka

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A kafka source & sink for flume

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published