Skip to content

dcrosta/flume-ng-kafka-sink

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flume-ng-kafka-sink

This project is used for flume-ng 1.4.0 to communicate with kafka 0.8.1.

Configuration of Kafka Sink

# kafka sink
producer.sinks.kafka.type = org.apache.flume.sink.kafka.KafkaSink
producer.sinks.kafka.channel = memChannel
producer.sinks.kafka.zk.connect = 192.168.86.5:2181
producer.sinks.kafka.metadata.broker.list = 192.168.86.10:9092
producer.sinks.kafka.topic = kafkaRocks
producer.sinks.kafka.serializer.class=kafka.serializer.StringEncoder
producer.sinks.kafka.request.required.acks=1
producer.sinks.kafka.max.message.size=1000000

For detailed/full flume sink config, please refer to the sample configuration files in the samples/flume-conf folder.

Please also to make sure to indluce needed dependency libs into flume classpath, by default it's in flume/lib. Please refer to the screenshot here for minimal required dependencies.

Special thanks to @baniuyao

For his great flume-ng-kafka plugin, his willingness to share the experience and results with open source community.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published