Skip to content

About

Sample applications for Apache Flume

Topics

Resources

Code of conduct

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

Apache Flume Samples

Sample applications showing how to send events to Apache Flume and how to assemble Flume agents, either natively or with Spring Boot:

Sample Description
client An application that sends a single event to Flume using Avro.
native/forwarder A Flume agent forwarding events to a second agent.
native/mongodb A Flume agent writing JSON events to MongoDB.
spring-boot/forwarder The forwarder agent, built with Spring Boot.
spring-boot/mongodb The MongoDB agent, built with Spring Boot.

All agents use File Channels to provide guaranteed delivery.

Running the samples

  1. Build the samples with ./mvnw install.
  2. Start a MongoDB server with a database named Events and a collection named events. To test duplicate detection, add a unique text index on requestDto.id.
  3. Start one of the MongoDB agents and one of the forwarder agents, as described in their READMEs.
  4. Run the client. It creates a document in the events collection; running it again does not create a second document, but logs a message in the MongoDB agent.

Note

These samples are a starting point, not production-ready code. They will never be formally released: copy and adapt them to your needs.

License

Apache Flume Samples is licensed under the Apache License, Version 2.0.

About

Sample applications for Apache Flume

Topics

Resources

Code of conduct

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages