Skip to content

Instantly share code, notes, and snippets.

@milindjagre
Created February 23, 2017 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milindjagre/3848eedebed8d337d9746eb46348b07e to your computer and use it in GitHub Desktop.
Save milindjagre/3848eedebed8d337d9746eb46348b07e to your computer and use it in GitHub Desktop.
# example.conf: A single-node Flume configuration
# Name the components on this agent
a1.sources = r1
a1.sinks = k1
a1.channels = c1
# Describe/configure the source
a1.sources.r1.type = netcat
a1.sources.r1.bind = localhost
a1.sources.r1.port = 44444
# Describe the sink
a1.sinks.k1.type = logger
# Use a channel which buffers events in memory
a1.channels.c1.type = memory
a1.channels.c1.capacity = 1000
a1.channels.c1.transactionCapacity = 100
# Bind the source and sink to the channel
a1.sources.r1.channels = c1
a1.sinks.k1.channel = c1
@milindjagre
Copy link
Author

This file is used to start the flume agent, which is one of the objectives of the HDPCD certification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment