Skip to content

kyanagimoto/flume-pid-interceptor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flume Interceptor: flume-pid-interceptor

This project provides an interceptor for Flume.
Add flume process ID on event header.

How to use

  1. Clone project
  2. Build with Maven
cd ./flume-pid-interceptor
mvn clean install
  1. The jar file will be installed in your local maven repository and can be found in sub-directory.
    Add it on Flume classpath.
cp ./target/flume-pid-interceptor-0.X.jar /path/to/flume/dir/lib
  1. Configure Flume conf file. Saved values (flumePid) on flume event header.

example)

agent.sources = r1
agent.sinks = s1

agent.sources.r1.interceptor = i1
agent.sources.r1.interceptors.i1.type = org.kyanagimoto.flume.interceptor.FlumePidInterceptor$Builder

agent.sinks.s1.hdfs.filePrefix = sample-prefix-${flumePid}

Change Log

About

You can get Flume processID via this interceptor.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages